5405 return |
5405 return |
5406 if not ui.quiet: |
5406 if not ui.quiet: |
5407 ui.warn(_("not found!\n")) |
5407 ui.warn(_("not found!\n")) |
5408 return 1 |
5408 return 1 |
5409 else: |
5409 else: |
5410 for name, path in sorted(ui.paths.iteritems()): |
5410 pathitems = sorted(ui.paths.iteritems()) |
5411 if ui.quiet: |
5411 |
5412 ui.write("%s\n" % name) |
5412 for name, path in pathitems: |
5413 else: |
5413 if ui.quiet: |
5414 ui.write("%s = %s\n" % (name, |
5414 ui.write("%s\n" % name) |
5415 util.hidepassword(path.rawloc))) |
5415 else: |
5416 for subopt, value in sorted(path.suboptions.items()): |
5416 ui.write("%s = %s\n" % (name, util.hidepassword(path.rawloc))) |
5417 ui.write('%s:%s = %s\n' % (name, subopt, value)) |
5417 for subopt, value in sorted(path.suboptions.items()): |
|
5418 ui.write('%s:%s = %s\n' % (name, subopt, value)) |
5418 |
5419 |
5419 @command('phase', |
5420 @command('phase', |
5420 [('p', 'public', False, _('set changeset phase to public')), |
5421 [('p', 'public', False, _('set changeset phase to public')), |
5421 ('d', 'draft', False, _('set changeset phase to draft')), |
5422 ('d', 'draft', False, _('set changeset phase to draft')), |
5422 ('s', 'secret', False, _('set changeset phase to secret')), |
5423 ('s', 'secret', False, _('set changeset phase to secret')), |