Mercurial > public > mercurial-scm > hg
diff tests/test-command-template.t @ 35591:8f1a7adb3225
revsetlang: catch invalid format character with %l prefix
listexp() could call argtype() with an invalid format character, but that
wasn't checked before.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 01 Apr 2017 17:18:31 +0900 |
parents | 4c3a4bb31c0e |
children | 0fd617afebc0 |
line wrap: on
line diff
--- a/tests/test-command-template.t Fri Dec 29 06:32:17 2017 +0530 +++ b/tests/test-command-template.t Sat Apr 01 17:18:31 2017 +0900 @@ -4085,6 +4085,9 @@ $ hg log -T '{revset("%whatever", 0)}\n' hg: parse error: unexpected revspec format character w [255] + $ hg log -T '{revset("%lwhatever", files)}\n' + hg: parse error: unexpected revspec format character w + [255] Test files function