/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Aaron Bentley
  • Date: 2006-02-17 14:39:29 UTC
  • mto: (1558.1.4 Aaron's integration)
  • mto: This revision was merged to the branch mainline in revision 1565.
  • Revision ID: abentley@panoramicfeedback.com-20060217143929-ef39fc087bf80511
Added progress bars to revert.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
                            rename,
82
82
                            supports_executable,
83
83
                            )
 
84
from bzrlib.progress import DummyProgress
84
85
from bzrlib.revision import NULL_REVISION
85
86
from bzrlib.symbol_versioning import *
86
87
from bzrlib.textui import show_status
1062
1063
        self._write_inventory(inv)
1063
1064
 
1064
1065
    @needs_write_lock
1065
 
    def revert(self, filenames, old_tree=None, backups=True):
 
1066
    def revert(self, filenames, old_tree=None, backups=True, 
 
1067
               pb=DummyProgress()):
1066
1068
        from transform import revert
1067
1069
        if old_tree is None:
1068
1070
            old_tree = self.basis_tree()
1069
 
        revert(self, old_tree, filenames, backups)
 
1071
        revert(self, old_tree, filenames, backups, pb)
1070
1072
        if not len(filenames):
1071
1073
            self.set_pending_merges([])
1072
1074