diff hgext/graphlog.py @ 10379:a78bfaf988e1

add -b/--branch option to clone, bundle, incoming, outgoing, pull, push
author Sune Foldager <cryo@cyanite.org>
date Sun, 07 Feb 2010 15:23:46 +0100
parents d757bc0c7865
children d1908cb95a82
line wrap: on
line diff
--- a/hgext/graphlog.py	Sun Feb 07 15:31:53 2010 +0100
+++ b/hgext/graphlog.py	Sun Feb 07 15:23:46 2010 +0100
@@ -277,7 +277,7 @@
 
     check_unsupported_flags(opts)
     dest = ui.expandpath(dest or 'default-push', dest or 'default')
-    dest, branches = hg.parseurl(dest)
+    dest, branches = hg.parseurl(dest, opts.get('branch'))
     revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev'))
     other = hg.repository(cmdutil.remoteui(ui, opts), dest)
     if revs:
@@ -305,7 +305,7 @@
     """
 
     check_unsupported_flags(opts)
-    source, branches = hg.parseurl(ui.expandpath(source))
+    source, branches = hg.parseurl(ui.expandpath(source), opts.get('branch'))
     other = hg.repository(cmdutil.remoteui(repo, opts), source)
     revs, checkout = hg.addbranchrevs(repo, other, branches, opts.get('rev'))
     ui.status(_('comparing with %s\n') % url.hidepassword(source))