Rev 2529: Better option names for missing (elliot) in http://sourcefrog.net/bzr/trivial
Martin Pool
mbp at sourcefrog.net
Fri Jun 15 06:27:26 BST 2007
At http://sourcefrog.net/bzr/trivial
------------------------------------------------------------
revno: 2529
revision-id: mbp at sourcefrog.net-20070615052724-yeec92utnzbd2z1w
parent: pqm at pqm.ubuntu.com-20070614060745-ywfqw6rm1sgtfx6i
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: trivial
timestamp: Fri 2007-06-15 15:27:24 +1000
message:
Better option names for missing (elliot)
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/builtins.py builtins.py-20050830033751-fc01482b9ca23183
=== modified file 'NEWS'
--- a/NEWS 2007-06-14 04:36:50 +0000
+++ b/NEWS 2007-06-15 05:27:24 +0000
@@ -13,6 +13,9 @@
abbreviated format info. ``info -v`` displays all the information
formerly displayed by ``info``. (Aaron Bentley)
+ * ``bzr missing`` now has better option names ``--this`` and ``--other``.
+ (Elliot Murphy)
+
bzr 0.17rc1 2007-06-12
NOTES WHEN UPGRADING:
=== modified file 'bzrlib/builtins.py'
--- a/bzrlib/builtins.py 2007-06-14 04:36:50 +0000
+++ b/bzrlib/builtins.py 2007-06-15 05:27:24 +0000
@@ -2967,7 +2967,7 @@
class cmd_missing(Command):
"""Show unmerged/unpulled revisions between two branches.
-
+
OTHER_BRANCH may be local or remote.
"""
@@ -2976,8 +2976,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'
@@ -2987,9 +2989,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:
More information about the bazaar-commits
mailing list