sapling/tests/test-command-template2.t
Jun Wu ac486dcc7e templater: add "ifgt" function
Summary:
This will be used by the next change testing whether `{files|count}` is
exceeding a threshold for deciding which commit template to use.

Reviewed By: phillco

Differential Revision: D8101518

fbshipit-source-id: 51e918c6d8ab7d6e8b71708d9291945b2a09a632
2018-05-22 19:51:52 -07:00

11 lines
299 B
Perl

$ newrepo
Test ifgt function
$ hg log -T '{ifgt(2, 1, "GT", "NOTGT")} {ifgt(2, 2, "GT", "NOTGT")} {ifgt(2, 3, "GT", "NOTGT")}\n' -r null
GT NOTGT NOTGT
$ hg log -T '{ifgt("2", "1", "GT", "NOTGT")} {ifgt("2", "2", "GT", "NOTGT")} {ifgt("2", 3, "GT", "NOTGT")}\n' -r null
GT NOTGT NOTGT