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

Matthieu Moy Matthieu.Moy at imag.fr
Wed Mar 22 09:39:51 GMT 2006


Just waking up the thread, since my patch seems to have been
forgotten :


=== modified file 'a/bzrlib/builtins.py'
--- a/bzrlib/builtins.py        
+++ b/bzrlib/builtins.py        
@@ -1063,16 +1063,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', 
@@ -1085,7 +1091,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,
@@ -1103,10 +1109,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