/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: 2007-08-29 20:41:28 UTC
  • mto: (2796.1.1 bzr.ab.integration)
  • mto: This revision was merged to the branch mainline in revision 2797.
  • Revision ID: abentley@panoramicfeedback.com-20070829204128-jjvbx2ik8borekc3
Add a deprecation warning for revert([]), and handle as revert(None) for now

Show diffs side-by-side

added added

removed removed

Lines of Context:
1893
1893
    def revert(self, filenames=None, old_tree=None, backups=True,
1894
1894
               pb=DummyProgress(), report_changes=False):
1895
1895
        from bzrlib.conflicts import resolve
 
1896
        if filenames == []:
 
1897
            filenames = None
 
1898
            symbol_versioning.warn('Using [] to revert all files is deprecated'
 
1899
                ' as of bzr 0.91.  Please use None (the default) instead.',
 
1900
                DeprecationWarning, stacklevel=2)
1896
1901
        if old_tree is None:
1897
1902
            old_tree = self.basis_tree()
1898
1903
        conflicts = transform.revert(self, old_tree, filenames, backups, pb,