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