mercurial/commands.py
changeset 24251 a330660b3d71
parent 24248 913347bcd59c
child 24258 093e8a5e995f
equal deleted inserted replaced
24250:9c32eea2ca04 24251:a330660b3d71
  4824     See :hg:`help urls` for more information.
  4824     See :hg:`help urls` for more information.
  4825 
  4825 
  4826     Returns 0 on success.
  4826     Returns 0 on success.
  4827     """
  4827     """
  4828     if search:
  4828     if search:
  4829         for name, path in ui.configitems("paths"):
  4829         for name, path in sorted(ui.paths.iteritems()):
  4830             if name == search:
  4830             if name == search:
  4831                 ui.status("%s\n" % util.hidepassword(path))
  4831                 ui.status("%s\n" % util.hidepassword(path.loc))
  4832                 return
  4832                 return
  4833         if not ui.quiet:
  4833         if not ui.quiet:
  4834             ui.warn(_("not found!\n"))
  4834             ui.warn(_("not found!\n"))
  4835         return 1
  4835         return 1
  4836     else:
  4836     else:
  4837         for name, path in ui.configitems("paths"):
  4837         for name, path in sorted(ui.paths.iteritems()):
  4838             if ui.quiet:
  4838             if ui.quiet:
  4839                 ui.write("%s\n" % name)
  4839                 ui.write("%s\n" % name)
  4840             else:
  4840             else:
  4841                 ui.write("%s = %s\n" % (name, util.hidepassword(path)))
  4841                 ui.write("%s = %s\n" % (name,
       
  4842                                         util.hidepassword(path.loc)))
  4842 
  4843 
  4843 @command('phase',
  4844 @command('phase',
  4844     [('p', 'public', False, _('set changeset phase to public')),
  4845     [('p', 'public', False, _('set changeset phase to public')),
  4845      ('d', 'draft', False, _('set changeset phase to draft')),
  4846      ('d', 'draft', False, _('set changeset phase to draft')),
  4846      ('s', 'secret', False, _('set changeset phase to secret')),
  4847      ('s', 'secret', False, _('set changeset phase to secret')),