Patchwork [5,of,6,path,intent] commands: define intent for outgoing

login
register
mail settings
Submitter Gregory Szorc
Date Sept. 29, 2014, 5:30 a.m.
Message ID <b4762747cbc304126428.1411968625@3.1.168.192.in-addr.arpa>
Download mbox | patch
Permalink /patch/6024/
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 1411967571 25200
#      Sun Sep 28 22:12:51 2014 -0700
# Node ID b4762747cbc304126428d33317fd33328be1055c
# Parent  5b4239b38103222c61525f86866a17bc8b929736
commands: define intent for outgoing

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -4657,18 +4657,20 @@  def outgoing(ui, repo, dest=None, **opts
         cmdutil.outgoinghooks(ui, repo, other, opts, o)
         return 0
 
     if opts.get('bookmarks'):
-        dest = ui.expandpath(dest or 'default-push', dest or 'default')
+        dest = ui.expandpath(dest or 'default-push', dest or 'default',
+            intent='outgoing')
         dest, branches = hg.parseurl(dest, opts.get('branch'))
         other = hg.peer(repo, opts, dest)
         if 'bookmarks' not in other.listkeys('namespaces'):
             ui.warn(_("remote doesn't support bookmarks\n"))
             return 0
         ui.status(_('comparing with %s\n') % util.hidepassword(dest))
         return bookmarks.diff(ui, other, repo)
 
-    repo._subtoppath = ui.expandpath(dest or 'default-push', dest or 'default')
+    repo._subtoppath = ui.expandpath(dest or 'default-push', dest or 'default',
+        intent='outgoing')
     try:
         return hg.outgoing(ui, repo, dest, opts)
     finally:
         del repo._subtoppath