equal
deleted
inserted
replaced
2803 'the %s extension') % (name, name) |
2803 'the %s extension') % (name, name) |
2804 ui.write('\n%s\n' % msg) |
2804 ui.write('\n%s\n' % msg) |
2805 except KeyError: |
2805 except KeyError: |
2806 pass |
2806 pass |
2807 |
2807 |
|
2808 ui.write(opttext(optlist, textwidth)) |
|
2809 |
2808 def helplist(select=None): |
2810 def helplist(select=None): |
2809 # list of commands |
2811 # list of commands |
2810 if name == "shortlist": |
2812 if name == "shortlist": |
2811 header = _('basic commands:\n\n') |
2813 header = _('basic commands:\n\n') |
2812 else: |
2814 else: |
2864 for names, header, doc in help.helptable: |
2866 for names, header, doc in help.helptable: |
2865 topics.append((sorted(names, key=len, reverse=True)[0], header)) |
2867 topics.append((sorted(names, key=len, reverse=True)[0], header)) |
2866 topics_len = max([len(s[0]) for s in topics]) |
2868 topics_len = max([len(s[0]) for s in topics]) |
2867 for t, desc in topics: |
2869 for t, desc in topics: |
2868 ui.write(" %-*s %s\n" % (topics_len, t, desc)) |
2870 ui.write(" %-*s %s\n" % (topics_len, t, desc)) |
|
2871 |
|
2872 ui.write(opttext(optlist, textwidth)) |
2869 |
2873 |
2870 def helptopic(name): |
2874 def helptopic(name): |
2871 for names, header, doc in help.helptable: |
2875 for names, header, doc in help.helptable: |
2872 if name in names: |
2876 if name in names: |
2873 break |
2877 break |
2953 # program name |
2957 # program name |
2954 ui.status(_("Mercurial Distributed SCM\n")) |
2958 ui.status(_("Mercurial Distributed SCM\n")) |
2955 ui.status('\n') |
2959 ui.status('\n') |
2956 helplist() |
2960 helplist() |
2957 |
2961 |
2958 ui.write(opttext(optlist, textwidth)) |
|
2959 |
2962 |
2960 @command('identify|id', |
2963 @command('identify|id', |
2961 [('r', 'rev', '', |
2964 [('r', 'rev', '', |
2962 _('identify the specified revision'), _('REV')), |
2965 _('identify the specified revision'), _('REV')), |
2963 ('n', 'num', None, _('show local revision number')), |
2966 ('n', 'num', None, _('show local revision number')), |