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

login
register
mail settings
Submitter Gregory Szorc
Date Sept. 29, 2014, 5:30 a.m.
Message ID <531f7761fb3883566b9f.1411968623@3.1.168.192.in-addr.arpa>
Download mbox | patch
Permalink /patch/6022/
State Changes Requested
Headers show

Comments

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

Patch

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: