Comments
Patch
@@ -4820,21 +4820,22 @@ def paths(ui, repo, search=None):
Returns 0 on success.
"""
if search:
- for name, path in ui.configitems("paths"):
- if name == search:
- ui.status("%s\n" % util.hidepassword(path))
+ for path in ui.paths:
+ if path.name == search:
+ ui.status("%s\n" % util.hidepassword(path.url))
return
if not ui.quiet:
ui.warn(_("not found!\n"))
return 1
else:
- for name, path in ui.configitems("paths"):
+ for path in ui.paths:
if ui.quiet:
- ui.write("%s\n" % name)
+ ui.write("%s\n" % path.name)
else:
- ui.write("%s = %s\n" % (name, util.hidepassword(path)))
+ ui.write("%s = %s\n" % (path.name,
+ util.hidepassword(path.url)))
@command('phase',
[('p', 'public', False, _('set changeset phase to public')),
('d', 'draft', False, _('set changeset phase to draft')),