author | Martin von Zweigbergk <martinvonz@google.com> |
Sun, 17 Jun 2018 21:47:34 -0700 | |
changeset 38376 | 0d7ec620faef |
parent 38304 | fabfbbf4dee2 |
permissions | -rw-r--r-- |
38304
fabfbbf4dee2
templatefilters: rename commonprefix to commondir
Martin von Zweigbergk <martinvonz@google.com>
parents:
38201
diff
changeset
|
1 |
$ hg debugtemplate '{""|splitlines|commondir}\n' |
38201
56dd15178190
templatefilters: add commonprefix
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
2 |
|
38304
fabfbbf4dee2
templatefilters: rename commonprefix to commondir
Martin von Zweigbergk <martinvonz@google.com>
parents:
38201
diff
changeset
|
3 |
$ hg debugtemplate '{"foo/bar\nfoo/baz\nfoo/foobar\n"|splitlines|commondir}\n' |
38201
56dd15178190
templatefilters: add commonprefix
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
4 |
foo |
38304
fabfbbf4dee2
templatefilters: rename commonprefix to commondir
Martin von Zweigbergk <martinvonz@google.com>
parents:
38201
diff
changeset
|
5 |
$ hg debugtemplate '{"foo/bar\nfoo/bar\n"|splitlines|commondir}\n' |
38201
56dd15178190
templatefilters: add commonprefix
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
6 |
foo |
38304
fabfbbf4dee2
templatefilters: rename commonprefix to commondir
Martin von Zweigbergk <martinvonz@google.com>
parents:
38201
diff
changeset
|
7 |
$ hg debugtemplate '{"/foo/bar\n/foo/bar\n"|splitlines|commondir}\n' |
38201
56dd15178190
templatefilters: add commonprefix
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
8 |
foo |
38304
fabfbbf4dee2
templatefilters: rename commonprefix to commondir
Martin von Zweigbergk <martinvonz@google.com>
parents:
38201
diff
changeset
|
9 |
$ hg debugtemplate '{"/foo\n/foo\n"|splitlines|commondir}\n' |
38201
56dd15178190
templatefilters: add commonprefix
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
10 |
|
38304
fabfbbf4dee2
templatefilters: rename commonprefix to commondir
Martin von Zweigbergk <martinvonz@google.com>
parents:
38201
diff
changeset
|
11 |
$ hg debugtemplate '{"foo/bar\nbar/baz"|splitlines|commondir}\n' |
38201
56dd15178190
templatefilters: add commonprefix
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
12 |
|
38304
fabfbbf4dee2
templatefilters: rename commonprefix to commondir
Martin von Zweigbergk <martinvonz@google.com>
parents:
38201
diff
changeset
|
13 |
$ hg debugtemplate '{"foo/bar\nbar/baz\nbar/foo\n"|splitlines|commondir}\n' |
38201
56dd15178190
templatefilters: add commonprefix
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
14 |
|
38304
fabfbbf4dee2
templatefilters: rename commonprefix to commondir
Martin von Zweigbergk <martinvonz@google.com>
parents:
38201
diff
changeset
|
15 |
$ hg debugtemplate '{"foo/../bar\nfoo/bar"|splitlines|commondir}\n' |
38201
56dd15178190
templatefilters: add commonprefix
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
16 |
foo |
38304
fabfbbf4dee2
templatefilters: rename commonprefix to commondir
Martin von Zweigbergk <martinvonz@google.com>
parents:
38201
diff
changeset
|
17 |
$ hg debugtemplate '{"foo\n/foo"|splitlines|commondir}\n' |
38201
56dd15178190
templatefilters: add commonprefix
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
18 |
|
56dd15178190
templatefilters: add commonprefix
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
19 |
$ hg init |
38304
fabfbbf4dee2
templatefilters: rename commonprefix to commondir
Martin von Zweigbergk <martinvonz@google.com>
parents:
38201
diff
changeset
|
20 |
$ hg log -r null -T '{rev|commondir}' |
38201
56dd15178190
templatefilters: add commonprefix
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
21 |
hg: parse error: argument is not a list of text |
38304
fabfbbf4dee2
templatefilters: rename commonprefix to commondir
Martin von Zweigbergk <martinvonz@google.com>
parents:
38201
diff
changeset
|
22 |
(template filter 'commondir' is not compatible with keyword 'rev') |
38201
56dd15178190
templatefilters: add commonprefix
Joerg Sonnenberger <joerg@bec.de>
parents:
diff
changeset
|
23 |
[255] |