equal
deleted
inserted
replaced
213 bar||foo| |
213 bar||foo| |
214 $ hg debugtemplate '{"foo/bar"|dirname}|{"foo/"|dirname}|{"foo"|dirname}|\n' |
214 $ hg debugtemplate '{"foo/bar"|dirname}|{"foo/"|dirname}|{"foo"|dirname}|\n' |
215 foo|foo|| |
215 foo|foo|| |
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 |
|
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] |
218 |
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 |
222 $ hg add a |
248 $ hg add a |