Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 27264:e07003a94ef3
ui: store pushloc as separate attribute
The magic @property is going to interfere with the ability to print
path sub-options. We only access it in one location and it is trivial
to in-line, so do that.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 06 Dec 2015 11:49:02 -0800 |
parents | 4efb36ecaaec |
children | 4dccc37b87bd |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Dec 05 23:37:46 2015 -0800 +++ b/mercurial/commands.py Sun Dec 06 11:49:02 2015 -0800 @@ -5639,7 +5639,8 @@ if not path: raise error.Abort(_('default repository not configured!'), hint=_('see the "path" section in "hg help config"')) - dest, branches = path.pushloc, (path.branch, opts.get('branch') or []) + dest = path.pushloc or path.loc + branches = (path.branch, opts.get('branch') or []) ui.status(_('pushing to %s\n') % util.hidepassword(dest)) revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev')) other = hg.peer(repo, opts, dest)