~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-06-24 11:12:11 UTC
  • Revision ID: mbp@sourcefrog.net-20050624111211-ecfab5bcf18c8bbc
- rename merge-based revert command to 'merge-revert'
- do simple file-based revert with 'revert'

Show diffs side-by-side

added added

removed removed

Lines of Context:
1234
1234
 
1235
1235
 
1236
1236
 
1237
 
class cmd_simple_revert(Command):
 
1237
class cmd_revert(Command):
1238
1238
    """Restore selected files from a previous revision.
1239
1239
    """
1240
1240
    takes_args = ['file+']
1247
1247
        b.revert([b.relpath(f) for f in file_list])
1248
1248
 
1249
1249
 
1250
 
class cmd_revert(Command):
 
1250
class cmd_merge_revert(Command):
1251
1251
    """Reverse all changes since the last commit.
1252
1252
 
1253
1253
    Only versioned files are affected.