Show More
@@ -1,153 +1,147 b'' | |||||
1 | # help.py - help data for mercurial |
|
1 | # help.py - help data for mercurial | |
2 | # |
|
2 | # | |
3 | # Copyright 2006 Matt Mackall <mpm@selenic.com> |
|
3 | # Copyright 2006 Matt Mackall <mpm@selenic.com> | |
4 | # |
|
4 | # | |
5 | # This software may be used and distributed according to the terms |
|
5 | # This software may be used and distributed according to the terms | |
6 | # of the GNU General Public License, incorporated herein by reference. |
|
6 | # of the GNU General Public License, incorporated herein by reference. | |
7 |
|
7 | |||
8 | helptable = { |
|
8 | helptable = { | |
9 | "dates|Date Formats": |
|
9 | "dates|Date Formats": | |
10 | r''' |
|
10 | r''' | |
11 | Some commands (backout, commit, tag) allow the user to specify a date. |
|
11 | Some commands (backout, commit, tag) allow the user to specify a date. | |
12 | Possible formats for dates are: |
|
12 | Many date formats are acceptible. Here are some examples: | |
13 |
|
||||
14 | YYYY-mm-dd \HH:MM[:SS] [(+|-)NNNN]:: |
|
|||
15 | This is a subset of ISO 8601, allowing just the recommended notations |
|
|||
16 | for date and time. The last part represents the timezone; if omitted, |
|
|||
17 | local time is assumed. Examples: |
|
|||
18 |
|
||||
19 | "2005-08-22 03:27 -0700" |
|
|||
20 |
|
||||
21 | "2006-04-19 21:39:51" |
|
|||
22 |
|
13 | |||
23 | aaa bbb dd HH:MM:SS YYYY [(+|-)NNNN]:: |
|
14 | "Wed Dec 6 13:18:29 2006" (local timezone assumed) | |
24 | This is the date format used by the C library. Here, aaa stands for |
|
15 | "Dec 6 13:18 -0600" (year assumed, time offset provided) | |
25 | abbreviated weekday name and bbb for abbreviated month name. The last |
|
16 | "Dec 6 13:18 UTC" (UTC and GMT are aliases for +0000) | |
26 | part represents the timezone; if omitted, local time is assumed. |
|
17 | "Dec 6" (midnight) | |
27 | Examples: |
|
18 | "13:18" (today assumed) | |
|
19 | "3:39" (3:39AM assumed) | |||
|
20 | "3:39pm" (15:39) | |||
|
21 | "2006-12-6 13:18:29" (ISO 8601 format) | |||
|
22 | "2006-12-6 13:18" | |||
|
23 | "2006-12-6" | |||
|
24 | "12-6" | |||
|
25 | "12/6" | |||
|
26 | "12/6/6" (Dec 6 2006) | |||
|
27 | "" (Jan 1 00:00:00 1970 UTC) | |||
28 |
|
28 | |||
29 | "Mon Aug 22 03:27:00 2005 -0700" |
|
29 | Lastly, there is Mercurial's internal format: | |
30 |
|
30 | |||
31 | "Wed Apr 19 21:39:51 2006" |
|
31 | "1165432709 0" (Wed Dec 6 13:18:29 2006 UTC) | |
32 |
|
32 | |||
33 | unixtime offset:: |
|
|||
34 | This is the internal representation format for dates. unixtime is |
|
33 | This is the internal representation format for dates. unixtime is | |
35 | the number of seconds since the epoch (1970-01-01 00:00 UTC). offset |
|
34 | the number of seconds since the epoch (1970-01-01 00:00 UTC). offset | |
36 | is the offset of the local timezone, in seconds west of UTC (negative |
|
35 | is the offset of the local timezone, in seconds west of UTC (negative | |
37 | if the timezone is east of UTC). |
|
36 | if the timezone is east of UTC). | |
38 | Examples: |
|
|||
39 |
|
||||
40 | "1124706420 25200" (2005-08-22 03:27:00 -0700) |
|
|||
41 |
|
||||
42 | "1145475591 -7200" (2006-04-19 21:39:51 +0200) |
|
|||
43 | ''', |
|
37 | ''', | |
44 |
|
38 | |||
45 | 'environment|env|Environment Variables': |
|
39 | 'environment|env|Environment Variables': | |
46 | r''' |
|
40 | r''' | |
47 | HGEDITOR:: |
|
41 | HGEDITOR:: | |
48 | This is the name of the editor to use when committing. Defaults to the |
|
42 | This is the name of the editor to use when committing. Defaults to the | |
49 | value of EDITOR. |
|
43 | value of EDITOR. | |
50 |
|
44 | |||
51 | (deprecated, use .hgrc) |
|
45 | (deprecated, use .hgrc) | |
52 |
|
46 | |||
53 | HGENCODING:: |
|
47 | HGENCODING:: | |
54 | This overrides the default locale setting detected by Mercurial. |
|
48 | This overrides the default locale setting detected by Mercurial. | |
55 | This setting is used to convert data including usernames, |
|
49 | This setting is used to convert data including usernames, | |
56 | changeset descriptions, tag names, and branches. This setting can |
|
50 | changeset descriptions, tag names, and branches. This setting can | |
57 | be overridden with the --encoding command-line option. |
|
51 | be overridden with the --encoding command-line option. | |
58 |
|
52 | |||
59 | HGENCODINGMODE:: |
|
53 | HGENCODINGMODE:: | |
60 | This sets Mercurial's behavior for handling unknown characters |
|
54 | This sets Mercurial's behavior for handling unknown characters | |
61 | while transcoding user inputs. The default is "strict", which |
|
55 | while transcoding user inputs. The default is "strict", which | |
62 | causes Mercurial to abort if it can't translate a character. Other |
|
56 | causes Mercurial to abort if it can't translate a character. Other | |
63 | settings include "replace", which replaces unknown characters, and |
|
57 | settings include "replace", which replaces unknown characters, and | |
64 | "ignore", which drops them. This setting can be overridden with |
|
58 | "ignore", which drops them. This setting can be overridden with | |
65 | the --encodingmode command-line option. |
|
59 | the --encodingmode command-line option. | |
66 |
|
60 | |||
67 | HGMERGE:: |
|
61 | HGMERGE:: | |
68 | An executable to use for resolving merge conflicts. The program |
|
62 | An executable to use for resolving merge conflicts. The program | |
69 | will be executed with three arguments: local file, remote file, |
|
63 | will be executed with three arguments: local file, remote file, | |
70 | ancestor file. |
|
64 | ancestor file. | |
71 |
|
65 | |||
72 | The default program is "hgmerge", which is a shell script provided |
|
66 | The default program is "hgmerge", which is a shell script provided | |
73 | by Mercurial with some sensible defaults. |
|
67 | by Mercurial with some sensible defaults. | |
74 |
|
68 | |||
75 | (deprecated, use .hgrc) |
|
69 | (deprecated, use .hgrc) | |
76 |
|
70 | |||
77 | HGRCPATH:: |
|
71 | HGRCPATH:: | |
78 | A list of files or directories to search for hgrc files. Item |
|
72 | A list of files or directories to search for hgrc files. Item | |
79 | separator is ":" on Unix, ";" on Windows. If HGRCPATH is not set, |
|
73 | separator is ":" on Unix, ";" on Windows. If HGRCPATH is not set, | |
80 | platform default search path is used. If empty, only .hg/hgrc of |
|
74 | platform default search path is used. If empty, only .hg/hgrc of | |
81 | current repository is read. |
|
75 | current repository is read. | |
82 |
|
76 | |||
83 | For each element in path, if a directory, all entries in directory |
|
77 | For each element in path, if a directory, all entries in directory | |
84 | ending with ".rc" are added to path. Else, element itself is |
|
78 | ending with ".rc" are added to path. Else, element itself is | |
85 | added to path. |
|
79 | added to path. | |
86 |
|
80 | |||
87 | HGUSER:: |
|
81 | HGUSER:: | |
88 | This is the string used for the author of a commit. |
|
82 | This is the string used for the author of a commit. | |
89 |
|
83 | |||
90 | (deprecated, use .hgrc) |
|
84 | (deprecated, use .hgrc) | |
91 |
|
85 | |||
92 | EMAIL:: |
|
86 | EMAIL:: | |
93 | If HGUSER is not set, this will be used as the author for a commit. |
|
87 | If HGUSER is not set, this will be used as the author for a commit. | |
94 |
|
88 | |||
95 | LOGNAME:: |
|
89 | LOGNAME:: | |
96 | If neither HGUSER nor EMAIL is set, LOGNAME will be used (with |
|
90 | If neither HGUSER nor EMAIL is set, LOGNAME will be used (with | |
97 | '@hostname' appended) as the author value for a commit. |
|
91 | '@hostname' appended) as the author value for a commit. | |
98 |
|
92 | |||
99 | EDITOR:: |
|
93 | EDITOR:: | |
100 | This is the name of the editor used in the hgmerge script. It will be |
|
94 | This is the name of the editor used in the hgmerge script. It will be | |
101 | used for commit messages if HGEDITOR isn't set. Defaults to 'vi'. |
|
95 | used for commit messages if HGEDITOR isn't set. Defaults to 'vi'. | |
102 |
|
96 | |||
103 | PYTHONPATH:: |
|
97 | PYTHONPATH:: | |
104 | This is used by Python to find imported modules and may need to be set |
|
98 | This is used by Python to find imported modules and may need to be set | |
105 | appropriately if Mercurial is not installed system-wide. |
|
99 | appropriately if Mercurial is not installed system-wide. | |
106 | ''', |
|
100 | ''', | |
107 |
|
101 | |||
108 | "patterns|File Name Patterns": r''' |
|
102 | "patterns|File Name Patterns": r''' | |
109 | Mercurial accepts several notations for identifying one or more |
|
103 | Mercurial accepts several notations for identifying one or more | |
110 | files at a time. |
|
104 | files at a time. | |
111 |
|
105 | |||
112 | By default, Mercurial treats filenames as shell-style extended |
|
106 | By default, Mercurial treats filenames as shell-style extended | |
113 | glob patterns. |
|
107 | glob patterns. | |
114 |
|
108 | |||
115 | Alternate pattern notations must be specified explicitly. |
|
109 | Alternate pattern notations must be specified explicitly. | |
116 |
|
110 | |||
117 | To use a plain path name without any pattern matching, start a |
|
111 | To use a plain path name without any pattern matching, start a | |
118 | name with "path:". These path names must match completely, from |
|
112 | name with "path:". These path names must match completely, from | |
119 | the root of the current repository. |
|
113 | the root of the current repository. | |
120 |
|
114 | |||
121 | To use an extended glob, start a name with "glob:". Globs are |
|
115 | To use an extended glob, start a name with "glob:". Globs are | |
122 | rooted at the current directory; a glob such as "*.c" will match |
|
116 | rooted at the current directory; a glob such as "*.c" will match | |
123 | files ending in ".c" in the current directory only. |
|
117 | files ending in ".c" in the current directory only. | |
124 |
|
118 | |||
125 | The supported glob syntax extensions are "**" to match any string |
|
119 | The supported glob syntax extensions are "**" to match any string | |
126 | across path separators, and "{a,b}" to mean "a or b". |
|
120 | across path separators, and "{a,b}" to mean "a or b". | |
127 |
|
121 | |||
128 | To use a Perl/Python regular expression, start a name with "re:". |
|
122 | To use a Perl/Python regular expression, start a name with "re:". | |
129 | Regexp pattern matching is anchored at the root of the repository. |
|
123 | Regexp pattern matching is anchored at the root of the repository. | |
130 |
|
124 | |||
131 | Plain examples: |
|
125 | Plain examples: | |
132 |
|
126 | |||
133 | path:foo/bar a name bar in a directory named foo in the root of |
|
127 | path:foo/bar a name bar in a directory named foo in the root of | |
134 | the repository |
|
128 | the repository | |
135 | path:path:name a file or directory named "path:name" |
|
129 | path:path:name a file or directory named "path:name" | |
136 |
|
130 | |||
137 | Glob examples: |
|
131 | Glob examples: | |
138 |
|
132 | |||
139 | glob:*.c any name ending in ".c" in the current directory |
|
133 | glob:*.c any name ending in ".c" in the current directory | |
140 | *.c any name ending in ".c" in the current directory |
|
134 | *.c any name ending in ".c" in the current directory | |
141 | **.c any name ending in ".c" in the current directory, or |
|
135 | **.c any name ending in ".c" in the current directory, or | |
142 | any subdirectory |
|
136 | any subdirectory | |
143 | foo/*.c any name ending in ".c" in the directory foo |
|
137 | foo/*.c any name ending in ".c" in the directory foo | |
144 | foo/**.c any name ending in ".c" in the directory foo, or any |
|
138 | foo/**.c any name ending in ".c" in the directory foo, or any | |
145 | subdirectory |
|
139 | subdirectory | |
146 |
|
140 | |||
147 | Regexp examples: |
|
141 | Regexp examples: | |
148 |
|
142 | |||
149 | re:.*\.c$ any name ending in ".c", anywhere in the repository |
|
143 | re:.*\.c$ any name ending in ".c", anywhere in the repository | |
150 |
|
144 | |||
151 | ''', |
|
145 | ''', | |
152 | } |
|
146 | } | |
153 |
|
147 |
General Comments 0
You need to be logged in to leave comments.
Login now