~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to apply_changeset.py

  • Committer: John Arbash Meinel
  • Date: 2005-07-10 15:14:15 UTC
  • mto: (0.5.85) (1185.82.1 bzr-w-changeset)
  • mto: This revision was merged to the branch mainline in revision 1738.
  • Revision ID: john@arbash-meinel.com-20050710151415-e1eb3a535097e4bc
Applying patch from Robey Pointer to clean up apply_changeset.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
        shutil.rmtree(tempdir)
82
82
 
83
83
 
84
 
def apply_changeset(branch, from_file, auto_commit=False):
 
84
def apply_changeset(branch, from_file, reverse=False, auto_commit=False):
85
85
    import sys, read_changeset
86
86
 
 
87
    if reverse:
 
88
        raise Exception('reverse not implemented yet')
 
89
        
87
90
    cset_info, cset_tree, cset_inv = \
88
 
            read_changeset.read_changeset(from_file)
 
91
            read_changeset.read_changeset(from_file, branch)
89
92
 
90
93
    _install_info(branch, cset_info, cset_tree, cset_inv)
91
94