diff mercurial/commands.py @ 13694:4f5ed2bd1724

merge with stable
author Matt Mackall <mpm@selenic.com>
date Thu, 17 Mar 2011 17:08:13 -0500
parents e798e430c5e5 adf3c4401c5d
children eaee75036725
line wrap: on
line diff
--- a/mercurial/commands.py	Thu Mar 17 22:17:27 2011 +0100
+++ b/mercurial/commands.py	Thu Mar 17 17:08:13 2011 -0500
@@ -3039,9 +3039,9 @@
 
     dest = ui.expandpath(dest or 'default-push', dest or 'default')
     dest, branches = hg.parseurl(dest, opts.get('branch'))
+    ui.status(_('pushing to %s\n') % url.hidepassword(dest))
     revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev'))
     other = hg.repository(hg.remoteui(repo, opts), dest)
-    ui.status(_('pushing to %s\n') % url.hidepassword(dest))
     if revs:
         revs = [repo.lookup(rev) for rev in revs]