[PATCH] Re: How to explore a remote branch?

Matthieu Moy Matthieu.Moy at imag.fr
Tue Feb 21 11:47:06 GMT 2006


Robert Collins <robertc at robertcollins.net> writes:

> This is actually incorrect, log only takes one parameter.
>
> If filename points to a file in a different branch, or to the root of a
> different branch, then that branch is the one logged. 

Yes, but I found no way to give

"usage: bzr log [FILENAME|BRANCH_LOCATION]"


Do the following sound better?

=== 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.
+
+    Without BRANCH_LOCATION argument, use the current branch.
+
+    With a FILENAME argument, show only the revisions that modified this file.
+
+    BRANCH_LOCATION and FILENAME can not be given at the same time.
     """
 
     # TODO: Make --revision support uuid: and hash: [future tag:] notation.
 
-    takes_args = ['filename?']
+    takes_args = ['filename?','branch_location?']
     takes_options = [Option('forward', 
                             help='show from oldest to newest'),
                      'timezone', 'verbose', 




-- 
Matthieu




More information about the bazaar mailing list