##// END OF EJS Templates
Generate docs for help topics
Matt Mackall -
r3797:54fd4d3b default
parent child Browse files
Show More
@@ -3,6 +3,7 b' import sys, textwrap'
3 sys.path.insert(0, "..")
3 sys.path.insert(0, "..")
4 from mercurial.commands import table, globalopts
4 from mercurial.commands import table, globalopts
5 from mercurial.i18n import gettext as _
5 from mercurial.i18n import gettext as _
6 from mercurial.help import helptable
6
7
7 def get_desc(docstr):
8 def get_desc(docstr):
8 if not docstr:
9 if not docstr:
@@ -88,5 +89,16 b' def show_doc(ui):'
88 if d['aliases']:
89 if d['aliases']:
89 ui.write(_(" aliases: %s\n\n") % " ".join(d['aliases']))
90 ui.write(_(" aliases: %s\n\n") % " ".join(d['aliases']))
90
91
92 # print topics
93 for t in helptable:
94 l = t.split("|")
95 section = l[-1]
96 underlined(_(section).upper())
97 doc = helptable[t]
98 if callable(doc):
99 doc = doc()
100 ui.write(_(doc))
101 ui.write("\n")
102
91 if __name__ == "__main__":
103 if __name__ == "__main__":
92 show_doc(sys.stdout)
104 show_doc(sys.stdout)
@@ -127,42 +127,6 b' SPECIFYING MULTIPLE REVISIONS'
127 A range acts as a closed interval. This means that a range of 3:5
127 A range acts as a closed interval. This means that a range of 3:5
128 gives 3, 4 and 5. Similarly, a range of 4:2 gives 4, 3, and 2.
128 gives 3, 4 and 5. Similarly, a range of 4:2 gives 4, 3, and 2.
129
129
130 DATE FORMATS
131 ------------
132
133 Some commands (backout, commit, tag) allow the user to specify a date.
134 Possible formats for dates are:
135
136 YYYY-mm-dd \HH:MM[:SS] [(+|-)NNNN]::
137 This is a subset of ISO 8601, allowing just the recommended notations
138 for date and time. The last part represents the timezone; if omitted,
139 local time is assumed. Examples:
140
141 "2005-08-22 03:27 -0700"
142
143 "2006-04-19 21:39:51"
144
145 aaa bbb dd HH:MM:SS YYYY [(+|-)NNNN]::
146 This is the date format used by the C library. Here, aaa stands for
147 abbreviated weekday name and bbb for abbreviated month name. The last
148 part represents the timezone; if omitted, local time is assumed.
149 Examples:
150
151 "Mon Aug 22 03:27:00 2005 -0700"
152
153 "Wed Apr 19 21:39:51 2006"
154
155 unixtime offset::
156 This is the internal representation format for dates. unixtime is
157 the number of seconds since the epoch (1970-01-01 00:00 UTC). offset
158 is the offset of the local timezone, in seconds west of UTC (negative
159 if the timezone is east of UTC).
160 Examples:
161
162 "1124706420 25200" (2005-08-22 03:27:00 -0700)
163
164 "1145475591 -7200" (2006-04-19 21:39:51 +0200)
165
166 ENVIRONMENT VARIABLES
130 ENVIRONMENT VARIABLES
167 ---------------------
131 ---------------------
168
132
General Comments 0
You need to be logged in to leave comments. Login now