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