[PATCH 3 of 6 path intent] commands: define intent for push

Gregory Szorc gregory.szorc at gmail.com
Mon Sep 29 00:30:23 CDT 2014


# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1411967402 25200
#      Sun Sep 28 22:10:02 2014 -0700
# Node ID 531f7761fb3883566b9f0ba34642bc8e52929042
# Parent  f564a480645468b7172de5a4a3b4198f3beff64a
commands: define intent for push

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -5019,9 +5019,10 @@ def push(ui, repo, dest=None, **opts):
                 # if we try to push a deleted bookmark, translate it to null
                 # this lets simultaneous -r, -b options continue working
                 opts.setdefault('rev', []).append("null")
 
-    dest = ui.expandpath(dest or 'default-push', dest or 'default')
+    dest = ui.expandpath(dest or 'default-push', dest or 'default',
+        intent='push')
     dest, branches = hg.parseurl(dest, opts.get('branch'))
     ui.status(_('pushing to %s\n') % util.hidepassword(dest))
     revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev'))
     try:


More information about the Mercurial-devel mailing list