Mercurial > hg > mercurial-crew-with-dirclash
annotate templates/template-vars.txt @ 2901:05f357b70cb0
Tune a bit the extdiff toplevel comments/samples.
* Capitalize the first letter of all sentences
* Add an example for GNU diff(1) 'context diff' mode.
* Explain the requirement for separate cmd.xxx and opts.xxx
options in .hgrc, which hopefully will guard against users
trying to add:
[extdiff]
# Add a new Mercurial command called `cdiff', which calls
# GNU diff(1) in 'context diff' mode.
cmd.cdiff = diff -Nprc5
which fails for recent crew builds with:
$ hg cdiff .
making snapshot of 1 files from rev 07dc4a569f4e
making snapshot of 1 files from working dir
diff -Nprc5: not found
The correct way to do this is by separating the cmd.cdiff and
opts.cdiff parts like this:
[extdiff]
# Add a new Mercurial command called `cdiff', which calls
# GNU diff(1) in 'context diff' mode.
cmd.cdiff = diff
opts.cdiff = -Nprc5
so add it as a new example and explicitly describe it in the
extdiff comments.
author | Giorgos Keramidas <keramida@ceid.upatras.gr> |
---|---|
date | Tue, 15 Aug 2006 18:14:58 +0300 |
parents | ba625c8083d8 |
children | e18c3d08528d |
rev | line source |
---|---|
138 | 1 repo the name of the repo |
2 rev a changeset.manifest revision | |
3 node a changeset node | |
4 changesets total number of changesets | |
5 file a filename | |
6 filenode a file node | |
7 filerev a file revision | |
8 filerevs total number of file revisions | |
9 up the directory of the relevant file | |
10 path a path in the manifest, starting with "/" | |
11 basename a short pathname | |
12 manifest a manifest node | |
13 manifestrev a manifest revision | |
14 date a date string | |
15 age age in hours, days, etc | |
16 line a line of text (escaped) | |
17 desc a description (escaped, with breaks) | |
18 shortdesc a short description (escaped) | |
19 author a name or email addressv(obfuscated) | |
598
f8d44a2e6928
[PATCH 4/5]: cleaning the template parent management in hgweb
mpm@selenic.com
parents:
138
diff
changeset
|
20 parent a list of the parent |
1606
ba625c8083d8
- duplicate the parent link logic to show child links
Muli Ben-Yehuda <mulix@mulix.org>
parents:
598
diff
changeset
|
21 child a list of the children |
598
f8d44a2e6928
[PATCH 4/5]: cleaning the template parent management in hgweb
mpm@selenic.com
parents:
138
diff
changeset
|
22 tags a list of tag |
138 | 23 |
24 header the global page header | |
25 footer the global page footer | |
26 | |
27 files a list of file links | |
28 dirs a set of directory links | |
29 diff a diff of one or more files | |
30 annotate an annotated file | |
31 entries the entries relevant to the page | |
32 | |
33 Templates and commands: | |
34 changelog(rev) - a page for browsing changesets | |
35 naventry - a link for jumping to a changeset number | |
36 filenodelink - jump to file diff | |
37 fileellipses - printed after maxfiles | |
38 changelogentry - an entry in the log | |
39 manifest - browse a manifest as a directory tree |