5358 Returns 0 on success. |
5358 Returns 0 on success. |
5359 """ |
5359 """ |
5360 if search: |
5360 if search: |
5361 for name, path in sorted(ui.paths.iteritems()): |
5361 for name, path in sorted(ui.paths.iteritems()): |
5362 if name == search: |
5362 if name == search: |
5363 ui.status("%s\n" % util.hidepassword(path.loc)) |
5363 ui.status("%s\n" % util.hidepassword(path.rawloc)) |
5364 return |
5364 return |
5365 if not ui.quiet: |
5365 if not ui.quiet: |
5366 ui.warn(_("not found!\n")) |
5366 ui.warn(_("not found!\n")) |
5367 return 1 |
5367 return 1 |
5368 else: |
5368 else: |
5369 for name, path in sorted(ui.paths.iteritems()): |
5369 for name, path in sorted(ui.paths.iteritems()): |
5370 if ui.quiet: |
5370 if ui.quiet: |
5371 ui.write("%s\n" % name) |
5371 ui.write("%s\n" % name) |
5372 else: |
5372 else: |
5373 ui.write("%s = %s\n" % (name, |
5373 ui.write("%s = %s\n" % (name, |
5374 util.hidepassword(path.loc))) |
5374 util.hidepassword(path.rawloc))) |
5375 for subopt, value in sorted(path.suboptions.items()): |
5375 for subopt, value in sorted(path.suboptions.items()): |
5376 ui.write('%s:%s = %s\n' % (name, subopt, value)) |
5376 ui.write('%s:%s = %s\n' % (name, subopt, value)) |
5377 |
5377 |
5378 @command('phase', |
5378 @command('phase', |
5379 [('p', 'public', False, _('set changeset phase to public')), |
5379 [('p', 'public', False, _('set changeset phase to public')), |