~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to contrib/plugins/changeset/__init__.py

  • Committer: Martin Pool
  • Date: 2005-06-22 09:34:11 UTC
  • Revision ID: mbp@sourcefrog.net-20050622093411-117a9269549f7c03
- fix up register_command() names

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
                auto_commit=auto_commit)
88
88
 
89
89
 
90
 
if hasattr(bzrlib.commands, 'register_plugin_cmd'):
91
 
    bzrlib.commands.register_plugin_cmd(cmd_changeset)
92
 
    bzrlib.commands.register_plugin_cmd(cmd_verify_changeset)
93
 
    bzrlib.commands.register_plugin_cmd(cmd_apply_changeset)
94
 
 
95
 
    bzrlib.commands.OPTIONS['reverse'] = None
96
 
    bzrlib.commands.OPTIONS['auto-commit'] = None
97
 
    cmd_apply_changeset.takes_options.append('reverse')
98
 
    cmd_apply_changeset.takes_options.append('auto-commit')
 
90
##if hasattr(bzrlib.commands, 'register_plugin_cmd'):
 
91
 
 
92
## print dir(bzrlib.commands)
 
93
 
 
94
bzrlib.commands.register_command(cmd_changeset)
 
95
bzrlib.commands.register_command(cmd_verify_changeset)
 
96
bzrlib.commands.register_command(cmd_apply_changeset)
 
97
 
 
98
bzrlib.commands.OPTIONS['reverse'] = None
 
99
bzrlib.commands.OPTIONS['auto-commit'] = None
 
100
cmd_apply_changeset.takes_options.append('reverse')
 
101
cmd_apply_changeset.takes_options.append('auto-commit')
99
102