From patchwork Mon Sep 29 05:30:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [5,of,6,path,intent] commands: define intent for outgoing From: Gregory Szorc X-Patchwork-Id: 6024 Message-Id: To: mercurial-devel@selenic.com Date: Sun, 28 Sep 2014 22:30:25 -0700 # HG changeset patch # User Gregory Szorc # Date 1411967571 25200 # Sun Sep 28 22:12:51 2014 -0700 # Node ID b4762747cbc304126428d33317fd33328be1055c # Parent 5b4239b38103222c61525f86866a17bc8b929736 commands: define intent for outgoing 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