/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 __init__.py

  • Committer: John Arbash Meinel
  • Date: 2005-09-24 00:04:43 UTC
  • mto: (1185.31.24 bzr-jam-integration)
  • mto: This revision was merged to the branch mainline in revision 1512.
  • Revision ID: john@arbash-meinel.com-20050924000443-6cf6a4c848bab97e
Changed the --remove command to --all

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
class cmd_uncommit(bzrlib.commands.Command):
10
10
    """Remove the last committed revision.
11
11
 
12
 
    By supplying the --remove flag, it will not only remove the entry 
 
12
    By supplying the --all flag, it will not only remove the entry 
13
13
    from revision_history, but also remove all of the entries in the
14
14
    stores.
15
15
 
20
20
    In the future, uncommit will create a changeset, which can then
21
21
    be re-applied.
22
22
    """
23
 
    takes_options = ['remove', 'dry-run', 'verbose', 'revision']
 
23
    takes_options = ['all', 'dry-run', 'verbose', 'revision']
24
24
    takes_args = ['location?']
25
25
    aliases = []
26
26
 
27
 
    def run(self, location=None, remove=False,
 
27
    def run(self, location=None, all=False,
28
28
            dry_run=False, verbose=False,
29
29
            revision=None):
30
30
        from bzrlib.branch import Branch
58
58
                print 'Canceled'
59
59
                return 0
60
60
 
61
 
        uncommit.uncommit(b, remove_files=remove,
 
61
        uncommit.uncommit(b, remove_files=all,
62
62
                dry_run=dry_run, verbose=verbose,
63
63
                revno=revno)
64
64
 
65
65
bzrlib.commands.register_command(cmd_uncommit)
66
 
bzrlib.commands.OPTIONS['remove'] = None
67
66
bzrlib.commands.OPTIONS['dry-run'] = None