Show More
@@ -1,36 +1,36 b'' | |||||
1 |
|
|
1 | Some commands allow the user to specify a date, e.g.: | |
2 |
|
2 | |||
3 |
|
|
3 | - backout, commit, import, tag: Specify the commit date. | |
4 |
|
|
4 | - log, revert, update: Select revision(s) by date. | |
5 |
|
5 | |||
6 |
|
|
6 | Many date formats are valid. Here are some examples:: | |
7 |
|
7 | |||
8 |
|
|
8 | "Wed Dec 6 13:18:29 2006" (local timezone assumed) | |
9 |
|
|
9 | "Dec 6 13:18 -0600" (year assumed, time offset provided) | |
10 |
|
|
10 | "Dec 6 13:18 UTC" (UTC and GMT are aliases for +0000) | |
11 |
|
|
11 | "Dec 6" (midnight) | |
12 |
|
|
12 | "13:18" (today assumed) | |
13 |
|
|
13 | "3:39" (3:39AM assumed) | |
14 |
|
|
14 | "3:39pm" (15:39) | |
15 |
|
|
15 | "2006-12-06 13:18:29" (ISO 8601 format) | |
16 |
|
|
16 | "2006-12-6 13:18" | |
17 |
|
|
17 | "2006-12-6" | |
18 |
|
|
18 | "12-6" | |
19 |
|
|
19 | "12/6" | |
20 |
|
|
20 | "12/6/6" (Dec 6 2006) | |
21 |
|
21 | |||
22 |
|
|
22 | Lastly, there is Mercurial's internal format:: | |
23 |
|
23 | |||
24 |
|
|
24 | "1165432709 0" (Wed Dec 6 13:18:29 2006 UTC) | |
25 |
|
25 | |||
26 |
|
|
26 | This is the internal representation format for dates. unixtime is the | |
27 |
|
|
27 | number of seconds since the epoch (1970-01-01 00:00 UTC). offset is | |
28 |
|
|
28 | the offset of the local timezone, in seconds west of UTC (negative if | |
29 |
|
|
29 | the timezone is east of UTC). | |
30 |
|
30 | |||
31 |
|
|
31 | The log command also accepts date ranges:: | |
32 |
|
32 | |||
33 |
|
|
33 | "<{datetime}" - at or before a given date/time | |
34 |
|
|
34 | ">{datetime}" - on or after a given date/time | |
35 |
|
|
35 | "{datetime} to {datetime}" - a date range, inclusive | |
36 |
|
|
36 | "-{days}" - within a given number of days of today |
@@ -1,31 +1,29 b'' | |||||
1 |
|
|
1 | Mercurial's default format for showing changes between two versions of | |
2 |
|
|
2 | a file is compatible with the unified format of GNU diff, which can be | |
3 |
|
|
3 | used by GNU patch and many other standard tools. | |
4 | tools. |
|
|||
5 |
|
4 | |||
6 |
|
|
5 | While this standard format is often enough, it does not encode the | |
7 |
|
|
6 | following information: | |
8 |
|
7 | |||
9 |
|
|
8 | - executable status and other permission bits | |
10 |
|
|
9 | - copy or rename information | |
11 |
|
|
10 | - changes in binary files | |
12 |
|
|
11 | - creation or deletion of empty files | |
13 |
|
12 | |||
14 |
|
|
13 | Mercurial also supports the extended diff format from the git VCS | |
15 |
|
|
14 | which addresses these limitations. The git diff format is not produced | |
16 |
|
|
15 | by default because a few widespread tools still do not understand this | |
17 | understand this format. |
|
16 | format. | |
18 |
|
17 | |||
19 |
|
|
18 | This means that when generating diffs from a Mercurial repository | |
20 |
|
|
19 | (e.g. with "hg export"), you should be careful about things like file | |
21 |
|
|
20 | copies and renames or other things mentioned above, because when | |
22 |
|
|
21 | applying a standard diff to a different repository, this extra | |
23 |
|
|
22 | information is lost. Mercurial's internal operations (like push and | |
24 |
|
|
23 | pull) are not affected by this, because they use an internal binary | |
25 |
|
|
24 | format for communicating changes. | |
26 |
|
25 | |||
27 |
|
|
26 | To make Mercurial produce the git extended diff format, use the --git | |
28 |
|
|
27 | option available for many commands, or set 'git = True' in the [diff] | |
29 |
|
|
28 | section of your hgrc. You do not need to set this option when | |
30 |
|
|
29 | importing diffs in this format or using them in the mq extension. | |
31 | extension. |
|
@@ -1,33 +1,33 b'' | |||||
1 |
|
|
1 | Mercurial has the ability to add new features through the use of | |
2 |
|
|
2 | extensions. Extensions may add new commands, add options to | |
3 |
|
|
3 | existing commands, change the default behavior of commands, or | |
4 |
|
|
4 | implement hooks. | |
5 |
|
5 | |||
6 |
|
|
6 | Extensions are not loaded by default for a variety of reasons: | |
7 |
|
|
7 | they can increase startup overhead; they may be meant for advanced | |
8 |
|
|
8 | usage only; they may provide potentially dangerous abilities (such | |
9 |
|
|
9 | as letting you destroy or modify history); they might not be ready | |
10 |
|
|
10 | for prime time; or they may alter some usual behaviors of stock | |
11 |
|
|
11 | Mercurial. It is thus up to the user to activate extensions as | |
12 |
|
|
12 | needed. | |
13 |
|
13 | |||
14 |
|
|
14 | To enable the "foo" extension, either shipped with Mercurial or in | |
15 |
|
|
15 | the Python search path, create an entry for it in your hgrc, like | |
16 |
|
|
16 | this:: | |
17 |
|
17 | |||
18 |
|
|
18 | [extensions] | |
19 |
|
|
19 | foo = | |
20 |
|
20 | |||
21 |
|
|
21 | You may also specify the full path to an extension:: | |
22 |
|
22 | |||
23 |
|
|
23 | [extensions] | |
24 |
|
|
24 | myfeature = ~/.hgext/myfeature.py | |
25 |
|
25 | |||
26 |
|
|
26 | To explicitly disable an extension enabled in an hgrc of broader | |
27 |
|
|
27 | scope, prepend its path with !:: | |
28 |
|
28 | |||
29 |
|
|
29 | [extensions] | |
30 |
|
|
30 | # disabling extension bar residing in /path/to/extension/bar.py | |
31 |
|
|
31 | hgext.bar = !/path/to/extension/bar.py | |
32 |
|
|
32 | # ditto, but no path was supplied for extension baz | |
33 |
|
|
33 | hgext.baz = ! |
@@ -1,15 +1,13 b'' | |||||
1 |
|
|
1 | When Mercurial accepts more than one revision, they may be specified | |
2 |
|
|
2 | individually, or provided as a topologically continuous range, | |
3 |
|
|
3 | separated by the ":" character. | |
4 |
|
4 | |||
5 |
|
|
5 | The syntax of range notation is [BEGIN]:[END], where BEGIN and END are | |
6 |
|
|
6 | revision identifiers. Both BEGIN and END are optional. If BEGIN is not | |
7 |
|
|
7 | specified, it defaults to revision number 0. If END is not specified, | |
8 |
|
|
8 | it defaults to the tip. The range ":" thus means "all revisions". | |
9 | "all revisions". |
|
|||
10 |
|
9 | |||
11 |
|
|
10 | If BEGIN is greater than END, revisions are treated in reverse order. | |
12 | order. |
|
|||
13 |
|
11 | |||
14 |
|
|
12 | A range acts as a closed interval. This means that a range of 3:5 | |
15 |
|
|
13 | gives 3, 4 and 5. Similarly, a range of 9:6 gives 9, 8, 7, and 6. |
@@ -1,41 +1,41 b'' | |||||
1 |
|
|
1 | Mercurial accepts several notations for identifying one or more files | |
2 |
|
|
2 | at a time. | |
3 |
|
3 | |||
4 |
|
|
4 | By default, Mercurial treats filenames as shell-style extended glob | |
5 |
|
|
5 | patterns. | |
6 |
|
6 | |||
7 |
|
|
7 | Alternate pattern notations must be specified explicitly. | |
8 |
|
8 | |||
9 |
|
|
9 | To use a plain path name without any pattern matching, start it with | |
10 |
|
|
10 | "path:". These path names must completely match starting at the | |
11 |
|
|
11 | current repository root. | |
12 |
|
12 | |||
13 |
|
|
13 | To use an extended glob, start a name with "glob:". Globs are rooted | |
14 |
|
|
14 | at the current directory; a glob such as "``*.c``" will only match | |
15 |
|
|
15 | files in the current directory ending with ".c". | |
16 |
|
16 | |||
17 |
|
|
17 | The supported glob syntax extensions are "``**``" to match any string | |
18 |
|
|
18 | across path separators and "{a,b}" to mean "a or b". | |
19 |
|
19 | |||
20 |
|
|
20 | To use a Perl/Python regular expression, start a name with "re:". | |
21 |
|
|
21 | Regexp pattern matching is anchored at the root of the repository. | |
22 |
|
22 | |||
23 |
|
|
23 | Plain examples:: | |
24 |
|
24 | |||
25 |
|
|
25 | path:foo/bar a name bar in a directory named foo in the root | |
26 |
|
|
26 | of the repository | |
27 |
|
|
27 | path:path:name a file or directory named "path:name" | |
28 |
|
28 | |||
29 |
|
|
29 | Glob examples:: | |
30 |
|
30 | |||
31 |
|
|
31 | glob:*.c any name ending in ".c" in the current directory | |
32 |
|
|
32 | *.c any name ending in ".c" in the current directory | |
33 |
|
|
33 | **.c any name ending in ".c" in any subdirectory of the | |
34 |
|
|
34 | current directory including itself. | |
35 |
|
|
35 | foo/*.c any name ending in ".c" in the directory foo | |
36 |
|
|
36 | foo/**.c any name ending in ".c" in any subdirectory of foo | |
37 |
|
|
37 | including itself. | |
38 |
|
38 | |||
39 |
|
|
39 | Regexp examples:: | |
40 |
|
40 | |||
41 |
|
|
41 | re:.*\.c$ any name ending in ".c", anywhere in the repository |
@@ -1,29 +1,29 b'' | |||||
1 |
|
|
1 | Mercurial supports several ways to specify individual revisions. | |
2 |
|
2 | |||
3 |
|
|
3 | A plain integer is treated as a revision number. Negative integers are | |
4 |
|
|
4 | treated as sequential offsets from the tip, with -1 denoting the tip, | |
5 |
|
|
5 | -2 denoting the revision prior to the tip, and so forth. | |
6 |
|
6 | |||
7 |
|
|
7 | A 40-digit hexadecimal string is treated as a unique revision | |
8 |
|
|
8 | identifier. | |
9 |
|
9 | |||
10 |
|
|
10 | A hexadecimal string less than 40 characters long is treated as a | |
11 |
|
|
11 | unique revision identifier and is referred to as a short-form | |
12 |
|
|
12 | identifier. A short-form identifier is only valid if it is the prefix | |
13 |
|
|
13 | of exactly one full-length identifier. | |
14 |
|
14 | |||
15 |
|
|
15 | Any other string is treated as a tag or branch name. A tag name is a | |
16 |
|
|
16 | symbolic name associated with a revision identifier. A branch name | |
17 |
|
|
17 | denotes the tipmost revision of that branch. Tag and branch names must | |
18 |
|
|
18 | not contain the ":" character. | |
19 |
|
19 | |||
20 |
|
|
20 | The reserved name "tip" is a special tag that always identifies the | |
21 |
|
|
21 | most recent revision. | |
22 |
|
22 | |||
23 |
|
|
23 | The reserved name "null" indicates the null revision. This is the | |
24 |
|
|
24 | revision of an empty repository, and the parent of revision 0. | |
25 |
|
25 | |||
26 |
|
|
26 | The reserved name "." indicates the working directory parent. If no | |
27 |
|
|
27 | working directory is checked out, it is equivalent to null. If an | |
28 |
|
|
28 | uncommitted merge is in progress, "." is the revision of the first | |
29 | first parent. |
|
29 | parent. |
@@ -1,113 +1,113 b'' | |||||
1 |
|
|
1 | Mercurial allows you to customize output of commands through | |
2 |
|
|
2 | templates. You can either pass in a template from the command | |
3 |
|
|
3 | line, via the --template option, or select an existing | |
4 |
|
|
4 | template-style (--style). | |
5 |
|
5 | |||
6 |
|
|
6 | You can customize output for any "log-like" command: log, | |
7 |
|
|
7 | outgoing, incoming, tip, parents, heads and glog. | |
8 |
|
8 | |||
9 |
|
|
9 | Three styles are packaged with Mercurial: default (the style used | |
10 |
|
|
10 | when no explicit preference is passed), compact and changelog. | |
11 |
|
|
11 | Usage:: | |
12 |
|
12 | |||
13 |
|
|
13 | $ hg log -r1 --style changelog | |
14 |
|
14 | |||
15 |
|
|
15 | A template is a piece of text, with markup to invoke variable | |
16 |
|
|
16 | expansion:: | |
17 |
|
17 | |||
18 |
|
|
18 | $ hg log -r1 --template "{node}\n" | |
19 |
|
|
19 | b56ce7b07c52de7d5fd79fb89701ea538af65746 | |
20 |
|
20 | |||
21 |
|
|
21 | Strings in curly braces are called keywords. The availability of | |
22 |
|
|
22 | keywords depends on the exact context of the templater. These | |
23 |
|
|
23 | keywords are usually available for templating a log-like command: | |
24 |
|
24 | |||
25 |
|
|
25 | :author: String. The unmodified author of the changeset. | |
26 |
|
|
26 | :branches: String. The name of the branch on which the changeset | |
27 |
|
|
27 | was committed. Will be empty if the branch name was | |
28 |
|
|
28 | default. | |
29 |
|
|
29 | :date: Date information. The date when the changeset was | |
30 |
|
|
30 | committed. | |
31 |
|
|
31 | :desc: String. The text of the changeset description. | |
32 |
|
|
32 | :diffstat: String. Statistics of changes with the following | |
33 |
|
|
33 | format: "modified files: +added/-removed lines" | |
34 |
|
|
34 | :files: List of strings. All files modified, added, or removed | |
35 |
|
|
35 | by this changeset. | |
36 |
|
|
36 | :file_adds: List of strings. Files added by this changeset. | |
37 |
|
|
37 | :file_mods: List of strings. Files modified by this changeset. | |
38 |
|
|
38 | :file_dels: List of strings. Files removed by this changeset. | |
39 |
|
|
39 | :node: String. The changeset identification hash, as a | |
40 |
|
|
40 | 40-character hexadecimal string. | |
41 |
|
|
41 | :parents: List of strings. The parents of the changeset. | |
42 |
|
|
42 | :rev: Integer. The repository-local changeset revision | |
43 |
|
|
43 | number. | |
44 |
|
|
44 | :tags: List of strings. Any tags associated with the | |
45 |
|
|
45 | changeset. | |
46 |
|
|
46 | :latesttag: String. Most recent global tag in the ancestors of this | |
47 |
|
|
47 | changeset. | |
48 |
|
|
48 | :latesttagdistance: Integer. Longest path to the latest tag. | |
49 |
|
49 | |||
50 |
|
|
50 | The "date" keyword does not produce human-readable output. If you | |
51 |
|
|
51 | want to use a date in your output, you can use a filter to process | |
52 |
|
|
52 | it. Filters are functions which return a string based on the input | |
53 |
|
|
53 | variable. You can also use a chain of filters to get the desired | |
54 |
|
|
54 | output:: | |
55 |
|
55 | |||
56 |
|
|
56 | $ hg tip --template "{date|isodate}\n" | |
57 |
|
|
57 | 2008-08-21 18:22 +0000 | |
58 |
|
58 | |||
59 |
|
|
59 | List of filters: | |
60 |
|
60 | |||
61 |
|
|
61 | :addbreaks: Any text. Add an XHTML "<br />" tag before the end of | |
62 |
|
|
62 | every line except the last. | |
63 |
|
|
63 | :age: Date. Returns a human-readable date/time difference | |
64 |
|
|
64 | between the given date/time and the current | |
65 |
|
|
65 | date/time. | |
66 |
|
|
66 | :basename: Any text. Treats the text as a path, and returns the | |
67 |
|
|
67 | last component of the path after splitting by the | |
68 |
|
|
68 | path separator (ignoring trailing separators). For | |
69 |
|
|
69 | example, "foo/bar/baz" becomes "baz" and "foo/bar//" | |
70 |
|
|
70 | becomes "bar". | |
71 |
|
|
71 | :stripdir: Treat the text as path and strip a directory level, | |
72 |
|
|
72 | if possible. For example, "foo" and "foo/bar" becomes | |
73 |
|
|
73 | "foo". | |
74 |
|
|
74 | :date: Date. Returns a date in a Unix date format, including | |
75 |
|
|
75 | the timezone: "Mon Sep 04 15:13:13 2006 0700". | |
76 |
|
|
76 | :domain: Any text. Finds the first string that looks like an | |
77 |
|
|
77 | email address, and extracts just the domain | |
78 |
|
|
78 | component. Example: 'User <user@example.com>' becomes | |
79 |
|
|
79 | 'example.com'. | |
80 |
|
|
80 | :email: Any text. Extracts the first string that looks like | |
81 |
|
|
81 | an email address. Example: 'User <user@example.com>' | |
82 |
|
|
82 | becomes 'user@example.com'. | |
83 |
|
|
83 | :escape: Any text. Replaces the special XML/XHTML characters | |
84 |
|
|
84 | "&", "<" and ">" with XML entities. | |
85 |
|
|
85 | :fill68: Any text. Wraps the text to fit in 68 columns. | |
86 |
|
|
86 | :fill76: Any text. Wraps the text to fit in 76 columns. | |
87 |
|
|
87 | :firstline: Any text. Returns the first line of text. | |
88 |
|
|
88 | :nonempty: Any text. Returns '(none)' if the string is empty. | |
89 |
|
|
89 | :hgdate: Date. Returns the date as a pair of numbers: | |
90 |
|
|
90 | "1157407993 25200" (Unix timestamp, timezone offset). | |
91 |
|
|
91 | :isodate: Date. Returns the date in ISO 8601 format: | |
92 |
|
|
92 | "2009-08-18 13:00 +0200". | |
93 |
|
|
93 | :isodatesec: Date. Returns the date in ISO 8601 format, including | |
94 |
|
|
94 | seconds: "2009-08-18 13:00:13 +0200". See also the | |
95 |
|
|
95 | rfc3339date filter. | |
96 |
|
|
96 | :localdate: Date. Converts a date to local date. | |
97 |
|
|
97 | :obfuscate: Any text. Returns the input text rendered as a | |
98 |
|
|
98 | sequence of XML entities. | |
99 |
|
|
99 | :person: Any text. Returns the text before an email address. | |
100 |
|
|
100 | :rfc822date: Date. Returns a date using the same format used in | |
101 |
|
|
101 | email headers: "Tue, 18 Aug 2009 13:00:13 +0200". | |
102 |
|
|
102 | :rfc3339date: Date. Returns a date using the Internet date format | |
103 |
|
|
103 | specified in RFC 3339: "2009-08-18T13:00:13+02:00". | |
104 |
|
|
104 | :short: Changeset hash. Returns the short form of a changeset | |
105 |
|
|
105 | hash, i.e. a 12-byte hexadecimal string. | |
106 |
|
|
106 | :shortdate: Date. Returns a date like "2006-09-18". | |
107 |
|
|
107 | :strip: Any text. Strips all leading and trailing whitespace. | |
108 |
|
|
108 | :tabindent: Any text. Returns the text, with every line except | |
109 |
|
|
109 | the first starting with a tab character. | |
110 |
|
|
110 | :urlescape: Any text. Escapes all "special" characters. For | |
111 |
|
|
111 | example, "foo bar" becomes "foo%20bar". | |
112 |
|
|
112 | :user: Any text. Returns the user portion of an email | |
113 |
|
|
113 | address. |
@@ -1,66 +1,63 b'' | |||||
1 |
|
|
1 | Valid URLs are of the form:: | |
|
2 | ||||
|
3 | local/filesystem/path[#revision] | |||
|
4 | file://local/filesystem/path[#revision] | |||
|
5 | http://[user[:pass]@]host[:port]/[path][#revision] | |||
|
6 | https://[user[:pass]@]host[:port]/[path][#revision] | |||
|
7 | ssh://[user[:pass]@]host[:port]/[path][#revision] | |||
2 |
|
8 | |||
3 | local/filesystem/path[#revision] |
|
9 | Paths in the local filesystem can either point to Mercurial | |
4 | file://local/filesystem/path[#revision] |
|
10 | repositories or to bundle files (as created by 'hg bundle' or 'hg | |
5 | http://[user[:pass]@]host[:port]/[path][#revision] |
|
11 | incoming --bundle'). | |
6 | https://[user[:pass]@]host[:port]/[path][#revision] |
|
|||
7 | ssh://[user[:pass]@]host[:port]/[path][#revision] |
|
|||
8 |
|
12 | |||
9 | Paths in the local filesystem can either point to Mercurial |
|
13 | An optional identifier after # indicates a particular branch, tag, or | |
10 | repositories or to bundle files (as created by 'hg bundle' or 'hg |
|
14 | changeset to use from the remote repository. See also 'hg help | |
11 | incoming --bundle'). |
|
15 | revisions'. | |
12 |
|
16 | |||
13 | An optional identifier after # indicates a particular branch, tag, |
|
17 | Some features, such as pushing to http:// and https:// URLs are only | |
14 | or changeset to use from the remote repository. See also 'hg help |
|
18 | possible if the feature is explicitly enabled on the remote Mercurial | |
15 | revisions'. |
|
19 | server. | |
16 |
|
20 | |||
17 | Some features, such as pushing to http:// and https:// URLs are |
|
21 | Some notes about using SSH with Mercurial: | |
18 | only possible if the feature is explicitly enabled on the remote |
|
|||
19 | Mercurial server. |
|
|||
20 |
|
22 | |||
21 | Some notes about using SSH with Mercurial: |
|
23 | - SSH requires an accessible shell account on the destination machine | |
|
24 | and a copy of hg in the remote path or specified with as remotecmd. | |||
|
25 | - path is relative to the remote user's home directory by default. Use | |||
|
26 | an extra slash at the start of a path to specify an absolute path:: | |||
22 |
|
27 | |||
23 | - SSH requires an accessible shell account on the destination |
|
28 | ssh://example.com//tmp/repository | |
24 | machine and a copy of hg in the remote path or specified with as |
|
|||
25 | remotecmd. |
|
|||
26 | - path is relative to the remote user's home directory by default. |
|
|||
27 | Use an extra slash at the start of a path to specify an absolute |
|
|||
28 | path:: |
|
|||
29 |
|
29 | |||
30 | ssh://example.com//tmp/repository |
|
30 | - Mercurial doesn't use its own compression via SSH; the right thing | |
|
31 | to do is to configure it in your ~/.ssh/config, e.g.:: | |||
31 |
|
32 | |||
32 | - Mercurial doesn't use its own compression via SSH; the right |
|
33 | Host *.mylocalnetwork.example.com | |
33 | thing to do is to configure it in your ~/.ssh/config, e.g.:: |
|
34 | Compression no | |
|
35 | Host * | |||
|
36 | Compression yes | |||
|
37 | ||||
|
38 | Alternatively specify "ssh -C" as your ssh command in your hgrc or | |||
|
39 | with the --ssh command line option. | |||
34 |
|
40 | |||
35 | Host *.mylocalnetwork.example.com |
|
41 | These URLs can all be stored in your hgrc with path aliases under the | |
36 | Compression no |
|
42 | [paths] section like so:: | |
37 | Host * |
|
|||
38 | Compression yes |
|
|||
39 |
|
43 | |||
40 | Alternatively specify "ssh -C" as your ssh command in your hgrc |
|
44 | [paths] | |
41 | or with the --ssh command line option. |
|
45 | alias1 = URL1 | |
42 |
|
46 | alias2 = URL2 | ||
43 | These URLs can all be stored in your hgrc with path aliases under |
|
47 | ... | |
44 | the [paths] section like so:: |
|
|||
45 |
|
48 | |||
46 | [paths] |
|
49 | You can then use the alias for any command that uses a URL (for | |
47 | alias1 = URL1 |
|
50 | example 'hg pull alias1' would pull from the 'alias1' path). | |
48 | alias2 = URL2 |
|
|||
49 | ... |
|
|||
50 |
|
51 | |||
51 | You can then use the alias for any command that uses a URL (for |
|
52 | Two path aliases are special because they are used as defaults when | |
52 | example 'hg pull alias1' would pull from the 'alias1' path). |
|
53 | you do not provide the URL to a command: | |
53 |
|
||||
54 | Two path aliases are special because they are used as defaults |
|
|||
55 | when you do not provide the URL to a command: |
|
|||
56 |
|
54 | |||
57 |
|
|
55 | default: | |
58 |
|
|
56 | When you create a repository with hg clone, the clone command saves | |
59 |
|
|
57 | the location of the source repository as the new repository's | |
60 |
|
|
58 | 'default' path. This is then used when you omit path from push- and | |
61 |
|
|
59 | pull-like commands (including incoming and outgoing). | |
62 | outgoing). |
|
|||
63 |
|
60 | |||
64 |
|
|
61 | default-push: | |
65 |
|
|
62 | The push command will look for a path named 'default-push', and | |
66 |
|
|
63 | prefer it over 'default' if both are defined. |
@@ -1548,7 +1548,7 b' def help_(ui, name=None, with_version=Fa' | |||||
1548 | doc = doc() |
|
1548 | doc = doc() | |
1549 |
|
1549 | |||
1550 | ui.write("%s\n\n" % header) |
|
1550 | ui.write("%s\n\n" % header) | |
1551 | ui.write("%s\n" % minirst.format(doc, textwidth)) |
|
1551 | ui.write("%s\n" % minirst.format(doc, textwidth, indent=4)) | |
1552 |
|
1552 | |||
1553 | def helpext(name): |
|
1553 | def helpext(name): | |
1554 | try: |
|
1554 | try: |
@@ -310,9 +310,11 b' def formatblock(block, width):' | |||||
310 | subsequent_indent=subindent) |
|
310 | subsequent_indent=subindent) | |
311 |
|
311 | |||
312 |
|
312 | |||
313 | def format(text, width): |
|
313 | def format(text, width, indent=0): | |
314 | """Parse and format the text according to width.""" |
|
314 | """Parse and format the text according to width.""" | |
315 | blocks = findblocks(text) |
|
315 | blocks = findblocks(text) | |
|
316 | for b in blocks: | |||
|
317 | b['indent'] += indent | |||
316 | blocks = findliteralblocks(blocks) |
|
318 | blocks = findliteralblocks(blocks) | |
317 | blocks = findsections(blocks) |
|
319 | blocks = findsections(blocks) | |
318 | blocks = findbulletlists(blocks) |
|
320 | blocks = findbulletlists(blocks) |
General Comments 0
You need to be logged in to leave comments.
Login now