[Pkg-bazaar-commits] ./bzr/unstable r759: - fix up register_command() names
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:20:58 UTC 2009
------------------------------------------------------------
revno: 759
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-06-22 19:34:11 +1000
message:
- fix up register_command() names
modified:
bzrlib/commands.py
contrib/plugins/changeset/__init__.py
-------------- next part --------------
=== modified file 'bzrlib/commands.py'
--- a/bzrlib/commands.py 2005-06-22 09:08:16 +0000
+++ b/bzrlib/commands.py 2005-06-22 09:34:11 +0000
@@ -29,7 +29,7 @@
plugin_cmds = {}
-def register_plugin_command(cmd):
+def register_command(cmd):
"Utility function to help register a command"
global plugin_cmds
k = cmd.__name__
=== modified file 'contrib/plugins/changeset/__init__.py'
--- a/contrib/plugins/changeset/__init__.py 2005-06-22 09:08:43 +0000
+++ b/contrib/plugins/changeset/__init__.py 2005-06-22 09:34:11 +0000
@@ -87,13 +87,16 @@
auto_commit=auto_commit)
-if hasattr(bzrlib.commands, 'register_plugin_cmd'):
- bzrlib.commands.register_plugin_cmd(cmd_changeset)
- bzrlib.commands.register_plugin_cmd(cmd_verify_changeset)
- bzrlib.commands.register_plugin_cmd(cmd_apply_changeset)
-
- bzrlib.commands.OPTIONS['reverse'] = None
- bzrlib.commands.OPTIONS['auto-commit'] = None
- cmd_apply_changeset.takes_options.append('reverse')
- cmd_apply_changeset.takes_options.append('auto-commit')
+##if hasattr(bzrlib.commands, 'register_plugin_cmd'):
+
+## print dir(bzrlib.commands)
+
+bzrlib.commands.register_command(cmd_changeset)
+bzrlib.commands.register_command(cmd_verify_changeset)
+bzrlib.commands.register_command(cmd_apply_changeset)
+
+bzrlib.commands.OPTIONS['reverse'] = None
+bzrlib.commands.OPTIONS['auto-commit'] = None
+cmd_apply_changeset.takes_options.append('reverse')
+cmd_apply_changeset.takes_options.append('auto-commit')
More information about the Pkg-bazaar-commits
mailing list