##// END OF EJS Templates
push: update help hint to point to config.paths section
timeless -
r29965:b3100653 default
parent child Browse files
Show More
@@ -6028,7 +6028,7 b' def push(ui, repo, dest=None, **opts):'
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))
@@ -19,7 +19,7 b" Push should provide a hint when both 'de"
19 $ cd c
19 $ cd c
20 $ hg push --config paths.default=
20 $ hg push --config paths.default=
21 abort: default repository not configured!
21 abort: default repository not configured!
22 (see the "path" section in "hg help config")
22 (see 'hg help config.paths')
23 [255]
23 [255]
24
24
25 $ cd ..
25 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now