tests/test-template-filters.t
author Yuya Nishihara <yuya@tcha.org>
Sat, 16 Jun 2018 17:04:03 +0900
changeset 38336 62376d7b8859
parent 38313 fabfbbf4dee2
permissions -rw-r--r--
py3: glob out some error messages in test-fileset.t Python3 provides more detailed messages, which is fine.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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]