bookmarks: fix bogus cut and paste for outgoing stable
authorMatt Mackall <mpm@selenic.com>
Sat, 26 Jun 2010 12:24:55 -0500
branchstable
changeset 11443 9e1bc1aafdb1
parent 11442 ee1ed6afac21
child 11444 b9a46acdfe1f
bookmarks: fix bogus cut and paste for outgoing
hgext/bookmarks.py
--- a/hgext/bookmarks.py	Fri Jun 25 13:47:28 2010 -0500
+++ b/hgext/bookmarks.py	Sat Jun 26 12:24:55 2010 -0500
@@ -473,14 +473,15 @@
     else:
         oldincoming(ui, repo, source, **opts)
 
-def outgoing(oldoutgoing, ui, repo, source="default", **opts):
+def outgoing(oldoutgoing, ui, repo, dest=None, **opts):
     if opts.get('bookmarks'):
-        source, branches = hg.parseurl(ui.expandpath(source), opts.get('branch'))
-        other = hg.repository(hg.remoteui(repo, opts), source)
-        ui.status(_('comparing with %s\n') % url.hidepassword(source))
+        dest = ui.expandpath(dest or 'default-push', dest or 'default')
+        dest, branches = hg.parseurl(dest, opts.get('branch'))
+        other = hg.repository(hg.remoteui(repo, opts), dest)
+        ui.status(_('comparing with %s\n') % url.hidepassword(dest))
         diffbookmarks(ui, other, repo)
     else:
-        oldoutgoing(ui, repo, source, **opts)
+        oldoutgoing(ui, repo, dest, **opts)
 
 def uisetup(ui):
     extensions.wrapfunction(repair, "strip", strip)