changeset 10389:6dc25b01e170

fix remaining hg.parseurl uses
author Sune Foldager <cryo@cyanite.org>
date Mon, 08 Feb 2010 10:32:44 +0100
parents 07bd7608a0ea
children f163775e36e0
files mercurial/commands.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Feb 07 05:34:22 2010 -0600
+++ b/mercurial/commands.py	Mon Feb 08 10:32:44 2010 +0100
@@ -3054,9 +3054,9 @@
 
     if opts.get('remote'):
         t = []
-        source, revs, checkout = hg.parseurl(ui.expandpath('default'),
-                                             opts.get('rev'))
+        source, branches = hg.parseurl(ui.expandpath('default'))
         other = hg.repository(cmdutil.remoteui(repo, {}), source)
+        revs, checkout = hg.addbranchrevs(repo, other, branches, opts.get('rev'))
         ui.debug('comparing with %s\n' % url.hidepassword(source))
         repo.ui.pushbuffer()
         common, incoming, rheads = repo.findcommonincoming(other)
@@ -3064,8 +3064,8 @@
         if incoming:
             t.append(_('1 or more incoming'))
 
-        dest, revs, checkout = hg.parseurl(
-            ui.expandpath('default-push', 'default'))
+        dest, branches = hg.parseurl(ui.expandpath('default-push', 'default'))
+        revs, checkout = hg.addbranchrevs(repo, repo, branches, None)
         other = hg.repository(cmdutil.remoteui(repo, {}), dest)
         ui.debug('comparing with %s\n' % url.hidepassword(dest))
         repo.ui.pushbuffer()