Show More
@@ -134,7 +134,7 b' def show_changeset(ui, repo, rev=0, chan' | |||
|
134 | 134 | ui.status("summary: %s\n" % description.splitlines()[0]) |
|
135 | 135 | ui.status("\n") |
|
136 | 136 | |
|
137 |
def |
|
|
137 | def version(ui): | |
|
138 | 138 | """output version and copyright information""" |
|
139 | 139 | ui.write("Mercurial version %s\n" % version.get_version()) |
|
140 | 140 | ui.status( |
@@ -167,7 +167,7 b' def help(ui, cmd=None):' | |||
|
167 | 167 | sys.exit(0) |
|
168 | 168 | else: |
|
169 | 169 | if not ui.quiet: |
|
170 |
|
|
|
170 | version(ui) | |
|
171 | 171 | ui.write('\n') |
|
172 | 172 | ui.write('hg commands:\n\n') |
|
173 | 173 | |
@@ -767,6 +767,7 b' table = {' | |||
|
767 | 767 | ('C', 'clean', None, 'overwrite locally modified files')], |
|
768 | 768 | 'hg update [options] [node]'), |
|
769 | 769 | "verify": (verify, [], 'hg verify'), |
|
770 | "version": (version, [], 'hg version'), | |
|
770 | 771 | } |
|
771 | 772 | |
|
772 | 773 | norepo = "init version help debugindex debugindexdot" |
@@ -809,7 +810,7 b' def dispatch(args):' | |||
|
809 | 810 | not options["noninteractive"]) |
|
810 | 811 | |
|
811 | 812 | if options["version"]: |
|
812 |
|
|
|
813 | version(u) | |
|
813 | 814 | sys.exit(0) |
|
814 | 815 | |
|
815 | 816 | try: |
@@ -32,6 +32,7 b' hg commands:' | |||
|
32 | 32 | undo undo the last transaction |
|
33 | 33 | update update or merge working directory |
|
34 | 34 | verify verify the integrity of the repository |
|
35 | version output version and copyright information | |
|
35 | 36 | + hg add -h |
|
36 | 37 | hg add: option -h not recognized |
|
37 | 38 | hg add [files] |
@@ -81,4 +82,5 b' hg commands:' | |||
|
81 | 82 | undo undo the last transaction |
|
82 | 83 | update update or merge working directory |
|
83 | 84 | verify verify the integrity of the repository |
|
85 | version output version and copyright information | |
|
84 | 86 | + exit 0 |
General Comments 0
You need to be logged in to leave comments.
Login now