##// END OF EJS Templates
tests: fold test-template-filters.t into test-template-functions.t
Yuya Nishihara -
r38454:6a8ed5c7 default
parent child Browse files
Show More
@@ -489,7 +489,6 b' test-symlink-placeholder.t'
489 test-symlinks.t
489 test-symlinks.t
490 test-tag.t
490 test-tag.t
491 test-tags.t
491 test-tags.t
492 test-template-filters.t
493 test-template-functions.t
492 test-template-functions.t
494 test-template-map.t
493 test-template-map.t
495 test-transplant.t
494 test-transplant.t
@@ -216,6 +216,32 b' Filename filters:'
216 $ hg debugtemplate '{"foo/bar"|stripdir}|{"foo/"|stripdir}|{"foo"|stripdir}|\n'
216 $ hg debugtemplate '{"foo/bar"|stripdir}|{"foo/"|stripdir}|{"foo"|stripdir}|\n'
217 foo|foo|foo|
217 foo|foo|foo|
218
218
219 commondir() filter:
220
221 $ hg debugtemplate '{""|splitlines|commondir}\n'
222
223 $ hg debugtemplate '{"foo/bar\nfoo/baz\nfoo/foobar\n"|splitlines|commondir}\n'
224 foo
225 $ hg debugtemplate '{"foo/bar\nfoo/bar\n"|splitlines|commondir}\n'
226 foo
227 $ hg debugtemplate '{"/foo/bar\n/foo/bar\n"|splitlines|commondir}\n'
228 foo
229 $ hg debugtemplate '{"/foo\n/foo\n"|splitlines|commondir}\n'
230
231 $ hg debugtemplate '{"foo/bar\nbar/baz"|splitlines|commondir}\n'
232
233 $ hg debugtemplate '{"foo/bar\nbar/baz\nbar/foo\n"|splitlines|commondir}\n'
234
235 $ hg debugtemplate '{"foo/../bar\nfoo/bar"|splitlines|commondir}\n'
236 foo
237 $ hg debugtemplate '{"foo\n/foo"|splitlines|commondir}\n'
238
239
240 $ hg log -r null -T '{rev|commondir}'
241 hg: parse error: argument is not a list of text
242 (template filter 'commondir' is not compatible with keyword 'rev')
243 [255]
244
219 Add a dummy commit to make up for the instability of the above:
245 Add a dummy commit to make up for the instability of the above:
220
246
221 $ echo a > a
247 $ echo a > a
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now