[PATCH] adding option aliases to 'bzr missing'

Elliot Murphy elliot at canonical.com
Thu Jun 7 15:38:40 BST 2007


Thanks for all the feedback. Here is a revised patch which uses
--this and --other instead.

=== modified file 'bzrlib/builtins.py'
--- bzrlib/builtins.py  2007-05-25 04:00:47 +0000
+++ bzrlib/builtins.py  2007-06-07 14:37:01 +0000
@@ -2972,8 +2972,10 @@
     takes_options = [Option('reverse', 'Reverse the order of revisions'),
                      Option('mine-only', 
                             'Display changes in the local branch only'),
+                     Option('this' , 'same as --mine-only'),
                      Option('theirs-only', 
-                            'Display changes in the remote branch only'), 
+                            'Display changes in the remote branch only'),
+                     Option('other', 'same as --theirs-only'),
                      'log-format',
                      'show-ids',
                      'verbose'
@@ -2983,9 +2985,15 @@
     @display_command
     def run(self, other_branch=None, reverse=False, mine_only=False,
             theirs_only=False, log_format=None, long=False, short=False, line=False, 
-            show_ids=False, verbose=False):
+            show_ids=False, verbose=False, this=False, other=False):
         from bzrlib.missing import find_unmerged, iter_log_revisions
         from bzrlib.log import log_formatter
+
+        if this:
+          mine_only = this
+        if other:
+          theirs_only = other
+
         local_branch = Branch.open_containing(u".")[0]
         parent = local_branch.get_parent()
         if other_branch is None:
-- 
Elliot Murphy | https://launchpad.net/~emurphy/



More information about the bazaar mailing list