~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to cbranch.py

  • Committer: Aaron Bentley
  • Date: 2007-12-21 04:23:49 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20071221042349-9sfpmuzu1g1rdshe
Rename from-files to files-from, to match bzr proper

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
from bzrlib.urlutils import derive_to_location
26
26
 
27
27
def cbranch(from_location, to_location=None, revision=None,
28
 
            lightweight=False, from_files=None):
 
28
            lightweight=False, files_from=None):
29
29
    if to_location is None:
30
30
        to_location = derive_to_location(from_location)
31
31
    config = LocationConfig(abspath(to_location))
37
37
                                  " locations.conf")
38
38
        b_loc = pathjoin(b_root, basename(to_location))
39
39
    accelerator_tree, old_branch = BzrDir.open_tree_or_branch(from_location)
40
 
    if from_files is not None:
41
 
        accelerator_tree = WorkingTree.open(from_files)
 
40
    if files_from is not None:
 
41
        accelerator_tree = WorkingTree.open(files_from)
42
42
    if revision is None or len(revision) == 0:
43
43
        revision_id = old_branch.last_revision()
44
44
    elif len(revision) == 1: