Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 29969:b3100653bafd
push: update help hint to point to config.paths section
author | timeless <timeless@mozdev.org> |
---|---|
date | Tue, 20 Sep 2016 20:12:38 +0000 |
parents | 80fef5251099 |
children | e65d33182fd4 |
comparison
equal
deleted
inserted
replaced
29968:40f845537dca | 29969:b3100653bafd |
---|---|
6026 opts.setdefault('rev', []).append("null") | 6026 opts.setdefault('rev', []).append("null") |
6027 | 6027 |
6028 path = ui.paths.getpath(dest, default=('default-push', 'default')) | 6028 path = ui.paths.getpath(dest, default=('default-push', 'default')) |
6029 if not path: | 6029 if not path: |
6030 raise error.Abort(_('default repository not configured!'), | 6030 raise error.Abort(_('default repository not configured!'), |
6031 hint=_('see the "path" section in "hg help config"')) | 6031 hint=_("see 'hg help config.paths'")) |
6032 dest = path.pushloc or path.loc | 6032 dest = path.pushloc or path.loc |
6033 branches = (path.branch, opts.get('branch') or []) | 6033 branches = (path.branch, opts.get('branch') or []) |
6034 ui.status(_('pushing to %s\n') % util.hidepassword(dest)) | 6034 ui.status(_('pushing to %s\n') % util.hidepassword(dest)) |
6035 revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev')) | 6035 revs, checkout = hg.addbranchrevs(repo, repo, branches, opts.get('rev')) |
6036 other = hg.peer(repo, opts, dest) | 6036 other = hg.peer(repo, opts, dest) |