/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: Canonical.com Patch Queue Manager
  • Date: 2007-09-05 05:11:39 UTC
  • mfrom: (2796.1.4 bzr.ab.integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070905051139-bogf0ne9pzsbsrs3
Use None to indicate 'no specific files' in revert, iter_changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1903
1903
        self.apply_inventory_delta(inv_delta)
1904
1904
 
1905
1905
    @needs_tree_write_lock
1906
 
    def revert(self, filenames, old_tree=None, backups=True, 
 
1906
    def revert(self, filenames=None, old_tree=None, backups=True,
1907
1907
               pb=DummyProgress(), report_changes=False):
1908
1908
        from bzrlib.conflicts import resolve
 
1909
        if filenames == []:
 
1910
            filenames = None
 
1911
            symbol_versioning.warn('Using [] to revert all files is deprecated'
 
1912
                ' as of bzr 0.91.  Please use None (the default) instead.',
 
1913
                DeprecationWarning, stacklevel=2)
1909
1914
        if old_tree is None:
1910
1915
            old_tree = self.basis_tree()
1911
1916
        conflicts = transform.revert(self, old_tree, filenames, backups, pb,
1912
1917
                                     report_changes)
1913
 
        if not len(filenames):
 
1918
        if filenames is None:
1914
1919
            self.set_parent_ids(self.get_parent_ids()[:1])
1915
1920
            resolve(self)
1916
1921
        else: