Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 27329:944af8e2eb4c
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 11 Dec 2015 17:45:19 -0600 |
parents | 5091c013fd1a 59d5f619e69e |
children | 43c00ca887d1 |
comparison
equal
deleted
inserted
replaced
27328:96dc6664fa9c | 27329:944af8e2eb4c |
---|---|
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')), |