diff mercurial/hg.py @ 13693:adf3c4401c5d stable

push/outgoing: print remote target path even if there's an error (issue2561) This is a simple patch to make hg push/hg outgoing print their remote target path even if the operation fails. I'm not sure if the original behavior was by design. This patch also changes one test to reflect the changed behaviour.
author Milo? Had?i? <milos.hadzic@gmail.com>
date Thu, 17 Mar 2011 22:55:02 +0100
parents 0d1dca7d2a04
children 4f5ed2bd1724
line wrap: on
line diff
--- a/mercurial/hg.py	Thu Mar 17 16:29:09 2011 -0400
+++ b/mercurial/hg.py	Thu Mar 17 22:55:02 2011 +0100
@@ -472,12 +472,12 @@
 def _outgoing(ui, repo, dest, opts):
     dest = ui.expandpath(dest or 'default-push', dest or 'default')
     dest, branches = parseurl(dest, opts.get('branch'))
+    ui.status(_('comparing with %s\n') % url.hidepassword(dest))
     revs, checkout = addbranchrevs(repo, repo, branches, opts.get('rev'))
     if revs:
         revs = [repo.lookup(rev) for rev in revs]
 
     other = repository(remoteui(repo, opts), dest)
-    ui.status(_('comparing with %s\n') % url.hidepassword(dest))
     o = discovery.findoutgoing(repo, other, force=opts.get('force'))
     if not o:
         ui.status(_("no changes found\n"))