Show More
@@ -1,15 +1,15 b'' | |||||
1 | %include map-cmdline.default |
|
1 | %include map-cmdline.default | |
2 |
|
2 | |||
3 | [templates] |
|
3 | [templates] | |
4 | changeset = '{cset}{lbisect}{branches}{bookmarks}{tags}{parents}{user}{ldate}{summary}\n' |
|
4 | changeset = '{cset}{lbisect}{branches}{bookmarks}{tags}{parents}{luser}{ldate}{summary}\n' | |
5 | changeset_quiet = '{lshortbisect} {rev}:{node|short}\n' |
|
5 | changeset_quiet = '{lshortbisect} {rev}:{node|short}\n' | |
6 | changeset_verbose = '{cset}{lbisect}{branches}{bookmarks}{tags}{parents}{user}{ldate}{lfiles}{lfile_copies_switch}{description}\n' |
|
6 | changeset_verbose = '{cset}{lbisect}{branches}{bookmarks}{tags}{parents}{luser}{ldate}{lfiles}{lfile_copies_switch}{description}\n' | |
7 | changeset_debug = '{fullcset}{lbisect}{branches}{bookmarks}{tags}{lphase}{parents}{manifest}{user}{ldate}{lfile_mods}{lfile_adds}{lfile_dels}{lfile_copies_switch}{extras}{description}\n' |
|
7 | changeset_debug = '{fullcset}{lbisect}{branches}{bookmarks}{tags}{lphase}{parents}{manifest}{luser}{ldate}{lfile_mods}{lfile_adds}{lfile_dels}{lfile_copies_switch}{extras}{description}\n' | |
8 |
|
8 | |||
9 | # We take the zeroth word in order to omit "(implicit)" in the label |
|
9 | # We take the zeroth word in order to omit "(implicit)" in the label | |
10 | bisectlabel = ' bisect.{word('0', bisect)}' |
|
10 | bisectlabel = ' bisect.{word('0', bisect)}' | |
11 |
|
11 | |||
12 | lbisect ='{label("log.bisect{if(bisect, bisectlabel)}", |
|
12 | lbisect ='{label("log.bisect{if(bisect, bisectlabel)}", | |
13 | "bisect: {bisect}\n")}' |
|
13 | "bisect: {bisect}\n")}' | |
14 | lshortbisect ='{label("log.bisect{if(bisect, bisectlabel)}", |
|
14 | lshortbisect ='{label("log.bisect{if(bisect, bisectlabel)}", | |
15 | "{bisect|shortbisect}")}' |
|
15 | "{bisect|shortbisect}")}' |
@@ -1,91 +1,91 b'' | |||||
1 | # Base templates. Due to name clashes with existing keywords, we have |
|
1 | # Base templates. Due to name clashes with existing keywords, we have | |
2 | # to replace some keywords with 'lkeyword', for 'labelled keyword' |
|
2 | # to replace some keywords with 'lkeyword', for 'labelled keyword' | |
3 |
|
3 | |||
4 | [templates] |
|
4 | [templates] | |
5 | changeset = '{cset}{branches}{bookmarks}{tags}{parents}{user}{ldate}{ltroubles}{lobsfate}{summary}\n' |
|
5 | changeset = '{cset}{branches}{bookmarks}{tags}{parents}{luser}{ldate}{ltroubles}{lobsfate}{summary}\n' | |
6 | changeset_quiet = '{lnode}' |
|
6 | changeset_quiet = '{lnode}' | |
7 | changeset_verbose = '{cset}{branches}{bookmarks}{tags}{parents}{user}{ldate}{ltroubles}{lobsfate}{lfiles}{lfile_copies_switch}{description}\n' |
|
7 | changeset_verbose = '{cset}{branches}{bookmarks}{tags}{parents}{luser}{ldate}{ltroubles}{lobsfate}{lfiles}{lfile_copies_switch}{description}\n' | |
8 | changeset_debug = '{fullcset}{branches}{bookmarks}{tags}{lphase}{parents}{manifest}{user}{ldate}{ltroubles}{lobsfate}{lfile_mods}{lfile_adds}{lfile_dels}{lfile_copies_switch}{extras}{description}\n' |
|
8 | changeset_debug = '{fullcset}{branches}{bookmarks}{tags}{lphase}{parents}{manifest}{luser}{ldate}{ltroubles}{lobsfate}{lfile_mods}{lfile_adds}{lfile_dels}{lfile_copies_switch}{extras}{description}\n' | |
9 |
|
9 | |||
10 | # File templates |
|
10 | # File templates | |
11 | lfiles = '{if(files, |
|
11 | lfiles = '{if(files, | |
12 | label("ui.note log.files", |
|
12 | label("ui.note log.files", | |
13 | "files: {files}\n"))}' |
|
13 | "files: {files}\n"))}' | |
14 |
|
14 | |||
15 | lfile_mods = '{if(file_mods, |
|
15 | lfile_mods = '{if(file_mods, | |
16 | label("ui.debug log.files", |
|
16 | label("ui.debug log.files", | |
17 | "files: {file_mods}\n"))}' |
|
17 | "files: {file_mods}\n"))}' | |
18 |
|
18 | |||
19 | lfile_adds = '{if(file_adds, |
|
19 | lfile_adds = '{if(file_adds, | |
20 | label("ui.debug log.files", |
|
20 | label("ui.debug log.files", | |
21 | "files+: {file_adds}\n"))}' |
|
21 | "files+: {file_adds}\n"))}' | |
22 |
|
22 | |||
23 | lfile_dels = '{if(file_dels, |
|
23 | lfile_dels = '{if(file_dels, | |
24 | label("ui.debug log.files", |
|
24 | label("ui.debug log.files", | |
25 | "files-: {file_dels}\n"))}' |
|
25 | "files-: {file_dels}\n"))}' | |
26 |
|
26 | |||
27 | lfile_copies_switch = '{if(file_copies_switch, |
|
27 | lfile_copies_switch = '{if(file_copies_switch, | |
28 | label("ui.note log.copies", |
|
28 | label("ui.note log.copies", | |
29 | "copies: {file_copies_switch |
|
29 | "copies: {file_copies_switch | |
30 | % ' {name} ({source})'}\n"))}' |
|
30 | % ' {name} ({source})'}\n"))}' | |
31 |
|
31 | |||
32 | # General templates |
|
32 | # General templates | |
33 | cset = '{labelcset("changeset: {rev}:{node|short}")}\n' |
|
33 | cset = '{labelcset("changeset: {rev}:{node|short}")}\n' | |
34 | fullcset = '{labelcset("changeset: {rev}:{node}")}\n' |
|
34 | fullcset = '{labelcset("changeset: {rev}:{node}")}\n' | |
35 |
|
35 | |||
36 | lphase = '{label("log.phase", |
|
36 | lphase = '{label("log.phase", | |
37 | "phase: {phase}")}\n' |
|
37 | "phase: {phase}")}\n' | |
38 |
|
38 | |||
39 | parent = '{label("log.parent changeset.{phase}", |
|
39 | parent = '{label("log.parent changeset.{phase}", | |
40 | "parent: {rev}:{node|formatnode}")}\n' |
|
40 | "parent: {rev}:{node|formatnode}")}\n' | |
41 |
|
41 | |||
42 | lnode = '{label("log.node", |
|
42 | lnode = '{label("log.node", | |
43 | "{rev}:{node|short}")}\n' |
|
43 | "{rev}:{node|short}")}\n' | |
44 |
|
44 | |||
45 | manifest = '{label("ui.debug log.manifest", |
|
45 | manifest = '{label("ui.debug log.manifest", | |
46 | "manifest: {rev}:{node}")}\n' |
|
46 | "manifest: {rev}:{node}")}\n' | |
47 |
|
47 | |||
48 | branch = '{label("log.branch", |
|
48 | branch = '{label("log.branch", | |
49 | "branch: {branch}")}\n' |
|
49 | "branch: {branch}")}\n' | |
50 |
|
50 | |||
51 | tag = '{label("log.tag", |
|
51 | tag = '{label("log.tag", | |
52 | "tag: {tag}")}\n' |
|
52 | "tag: {tag}")}\n' | |
53 |
|
53 | |||
54 | bookmark = '{label("log.bookmark", |
|
54 | bookmark = '{label("log.bookmark", | |
55 | "bookmark: {bookmark}")}\n' |
|
55 | "bookmark: {bookmark}")}\n' | |
56 |
|
56 | |||
57 | user = '{label("log.user", |
|
57 | luser = '{label("log.user", | |
58 | "user: {author}")}\n' |
|
58 | "user: {author}")}\n' | |
59 |
|
59 | |||
60 | summary = '{if(desc|strip, "{label('log.summary', |
|
60 | summary = '{if(desc|strip, "{label('log.summary', | |
61 | 'summary: {desc|firstline}')}\n")}' |
|
61 | 'summary: {desc|firstline}')}\n")}' | |
62 |
|
62 | |||
63 | ldate = '{label("log.date", |
|
63 | ldate = '{label("log.date", | |
64 | "date: {date|date}")}\n' |
|
64 | "date: {date|date}")}\n' | |
65 |
|
65 | |||
66 | ltroubles = '{if(instabilities, "{label('log.instability', |
|
66 | ltroubles = '{if(instabilities, "{label('log.instability', | |
67 | 'instability: {join(instabilities, ", ")}')}\n")}' |
|
67 | 'instability: {join(instabilities, ", ")}')}\n")}' | |
68 |
|
68 | |||
69 | extra = '{label("ui.debug log.extra", |
|
69 | extra = '{label("ui.debug log.extra", | |
70 | "extra: {key}={value|stringescape}")}\n' |
|
70 | "extra: {key}={value|stringescape}")}\n' | |
71 |
|
71 | |||
72 | description = '{if(desc|strip, "{label('ui.note log.description', |
|
72 | description = '{if(desc|strip, "{label('ui.note log.description', | |
73 | 'description:')} |
|
73 | 'description:')} | |
74 | {label('ui.note log.description', |
|
74 | {label('ui.note log.description', | |
75 | '{desc|strip}')}\n\n")}' |
|
75 | '{desc|strip}')}\n\n")}' | |
76 |
|
76 | |||
77 | status = '{status} {path}\n{if(copy, " {copy}\n")}' |
|
77 | status = '{status} {path}\n{if(copy, " {copy}\n")}' | |
78 |
|
78 | |||
79 | # Obsfate templates, it would be removed once we introduce the obsfate |
|
79 | # Obsfate templates, it would be removed once we introduce the obsfate | |
80 | # template fragment |
|
80 | # template fragment | |
81 | lobsfate = '{if(obsfate, "{label('log.obsfate', '{obsfate % "obsolete: {fate}\n"}')}")}' |
|
81 | lobsfate = '{if(obsfate, "{label('log.obsfate', '{obsfate % "obsolete: {fate}\n"}')}")}' | |
82 |
|
82 | |||
83 | [templatealias] |
|
83 | [templatealias] | |
84 | labelcset(expr) = label(separate(" ", |
|
84 | labelcset(expr) = label(separate(" ", | |
85 | "log.changeset", |
|
85 | "log.changeset", | |
86 | "changeset.{phase}", |
|
86 | "changeset.{phase}", | |
87 | if(obsolete, "changeset.obsolete"), |
|
87 | if(obsolete, "changeset.obsolete"), | |
88 | if(instabilities, "changeset.unstable"), |
|
88 | if(instabilities, "changeset.unstable"), | |
89 | join(instabilities |
|
89 | join(instabilities | |
90 | % "instability.{instability}", " ")), |
|
90 | % "instability.{instability}", " ")), | |
91 | expr) |
|
91 | expr) |
@@ -1,5 +1,5 b'' | |||||
1 | %include map-cmdline.default |
|
1 | %include map-cmdline.default | |
2 |
|
2 | |||
3 | [templates] |
|
3 | [templates] | |
4 | changeset = '{cset}{branches}{bookmarks}{tags}{lphase}{parents}{user}{ldate}{summary}\n' |
|
4 | changeset = '{cset}{branches}{bookmarks}{tags}{lphase}{parents}{luser}{ldate}{summary}\n' | |
5 | changeset_verbose = '{cset}{branches}{bookmarks}{tags}{lphase}{parents}{user}{ldate}{lfiles}{lfile_copies_switch}{description}\n' |
|
5 | changeset_verbose = '{cset}{branches}{bookmarks}{tags}{lphase}{parents}{luser}{ldate}{lfiles}{lfile_copies_switch}{description}\n' |
@@ -1,21 +1,21 b'' | |||||
1 | %include map-cmdline.default |
|
1 | %include map-cmdline.default | |
2 |
|
2 | |||
3 | [templates] |
|
3 | [templates] | |
4 | # Override base templates |
|
4 | # Override base templates | |
5 | changeset = '{cset}{branches}{bookmarks}{tags}{parents}{user}{ldate}{summary}{lfiles}\n' |
|
5 | changeset = '{cset}{branches}{bookmarks}{tags}{parents}{luser}{ldate}{summary}{lfiles}\n' | |
6 | changeset_verbose = '{cset}{branches}{bookmarks}{tags}{parents}{user}{ldate}{description}{lfiles}\n' |
|
6 | changeset_verbose = '{cset}{branches}{bookmarks}{tags}{parents}{luser}{ldate}{description}{lfiles}\n' | |
7 | changeset_debug = '{fullcset}{branches}{bookmarks}{tags}{lphase}{parents}{manifest}{user}{ldate}{extras}{description}{lfiles}\n' |
|
7 | changeset_debug = '{fullcset}{branches}{bookmarks}{tags}{lphase}{parents}{manifest}{luser}{ldate}{extras}{description}{lfiles}\n' | |
8 |
|
8 | |||
9 | # Override the file templates |
|
9 | # Override the file templates | |
10 | lfiles = '{if(files, |
|
10 | lfiles = '{if(files, | |
11 | label('ui.note log.files', |
|
11 | label('ui.note log.files', | |
12 | 'files:\n'))}{lfile_mods}{lfile_adds}{lfile_dels}' |
|
12 | 'files:\n'))}{lfile_mods}{lfile_adds}{lfile_dels}' | |
13 |
|
13 | |||
14 | lfile_adds = '{file_adds % "{lfile_add}{lfile_src}"}' |
|
14 | lfile_adds = '{file_adds % "{lfile_add}{lfile_src}"}' | |
15 | lfile_mods = '{file_mods % "{lfile_mod}{lfile_src}"}' |
|
15 | lfile_mods = '{file_mods % "{lfile_mod}{lfile_src}"}' | |
16 | lfile_add = '{label("status.added", "A {file}\n")}' |
|
16 | lfile_add = '{label("status.added", "A {file}\n")}' | |
17 | lfile_mod = '{label("status.modified", "M {file}\n")}' |
|
17 | lfile_mod = '{label("status.modified", "M {file}\n")}' | |
18 | lfile_src = '{ifcontains(file, file_copies_switch, |
|
18 | lfile_src = '{ifcontains(file, file_copies_switch, | |
19 | label("status.copied", " {get(file_copies_switch, file)}\n"))}' |
|
19 | label("status.copied", " {get(file_copies_switch, file)}\n"))}' | |
20 |
|
20 | |||
21 | lfile_dels = '{file_dels % "{label('status.removed', 'R {file}\n')}"}' |
|
21 | lfile_dels = '{file_dels % "{label('status.removed', 'R {file}\n')}"}' |
General Comments 0
You need to be logged in to leave comments.
Login now