[PATCH] Re: How to explore a remote branch?
Matthieu Moy
Matthieu.Moy at imag.fr
Wed Feb 22 08:58:08 GMT 2006
Aaron Bentley <aaron.bentley at utoronto.ca> writes:
> Matthieu Moy wrote:
>> + 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.
>
>
> This is wrong, because file locations are also accepted, not just
> filenames or paths.
> e.g. "bzr log sftp://localhost//home/abentley/bzr.dev/bzr" will list all
> revisions that changed the bzr file in the specified branch.
Adapt if necessary, but this should be OK.
=== modified file 'bzrlib/builtins.py'
--- bzrlib/builtins.py
+++ bzrlib/builtins.py
@@ -956,16 +956,22 @@
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. The filename can also be remote, e.g.
+ bzr log sftp://host.com/path/to/branch/path/to/file
+ will list all revisions that changed the bzr file in the specified
+ branch. """
# 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 +984,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 +1002,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