mercurial/commands.py
branchstable
changeset 27320 59d5f619e69e
parent 26959 ed5f20f9c22e
child 27329 944af8e2eb4c
child 27555 ca8ada499529
equal deleted inserted replaced
27245:cea1473ba468 27320:59d5f619e69e
  5108     Returns 0 on success.
  5108     Returns 0 on success.
  5109     """
  5109     """
  5110     if search:
  5110     if search:
  5111         for name, path in sorted(ui.paths.iteritems()):
  5111         for name, path in sorted(ui.paths.iteritems()):
  5112             if name == search:
  5112             if name == search:
  5113                 ui.status("%s\n" % util.hidepassword(path.loc))
  5113                 ui.status("%s\n" % util.hidepassword(path.rawloc))
  5114                 return
  5114                 return
  5115         if not ui.quiet:
  5115         if not ui.quiet:
  5116             ui.warn(_("not found!\n"))
  5116             ui.warn(_("not found!\n"))
  5117         return 1
  5117         return 1
  5118     else:
  5118     else:
  5119         for name, path in sorted(ui.paths.iteritems()):
  5119         for name, path in sorted(ui.paths.iteritems()):
  5120             if ui.quiet:
  5120             if ui.quiet:
  5121                 ui.write("%s\n" % name)
  5121                 ui.write("%s\n" % name)
  5122             else:
  5122             else:
  5123                 ui.write("%s = %s\n" % (name,
  5123                 ui.write("%s = %s\n" % (name,
  5124                                         util.hidepassword(path.loc)))
  5124                                         util.hidepassword(path.rawloc)))
  5125 
  5125 
  5126 @command('phase',
  5126 @command('phase',
  5127     [('p', 'public', False, _('set changeset phase to public')),
  5127     [('p', 'public', False, _('set changeset phase to public')),
  5128      ('d', 'draft', False, _('set changeset phase to draft')),
  5128      ('d', 'draft', False, _('set changeset phase to draft')),
  5129      ('s', 'secret', False, _('set changeset phase to secret')),
  5129      ('s', 'secret', False, _('set changeset phase to secret')),