[PATCH] Re: How to explore a remote branch?
Matthieu Moy
Matthieu.Moy at imag.fr
Tue Feb 21 17:59:37 GMT 2006
John A Meinel <john at arbash-meinel.com> writes:
> I think it would be better to *only* change the documentation to say:
This one might be the right one ...
=== modified file 'bzrlib/builtins.py'
--- bzrlib/builtins.py
+++ bzrlib/builtins.py
@@ -956,16 +956,20 @@
class cmd_log(Command):
- """Show log of this branch.
+ """Show log of a branch.
To request a range of logs, you can use the command -r begin..end
-r revision requests a specific revision, -r ..end or -r begin.. are
also valid.
+
+ PATH can either be a filename or a branch location. If it is a
+ filename, only logs for revisions which modified that file will be
+ printed.
"""
# TODO: Make --revision support uuid: and hash: [future tag:] notation.
- takes_args = ['filename?']
+ takes_args = ['path?']
takes_options = [Option('forward',
help='show from oldest to newest'),
'timezone', 'verbose',
@@ -978,7 +982,7 @@
'short',
]
@display_command
- def run(self, filename=None, timezone='original',
+ def run(self, path=None, timezone='original',
verbose=False,
show_ids=False,
forward=False,
@@ -996,10 +1000,10 @@
# log everything
file_id = None
- if filename:
+ if path:
# find the file id to log:
- dir, fp = bzrdir.BzrDir.open_containing(filename)
+ dir, fp = bzrdir.BzrDir.open_containing(path)
b = dir.open_branch()
if fp != '':
try:
--
Matthieu
More information about the bazaar
mailing list