comparison tests/test-revset.t @ 36583:edf736c3c064

tests: add some re and globs for test-revset on python3 At this point we're down to two deprecation warnings (which I suspect are showing a bug in the test?) and one weird-looking failure. Progress! Differential Revision: https://phab.mercurial-scm.org/D2559
author Augie Fackler <augie@google.com>
date Fri, 02 Mar 2018 13:47:49 -0500
parents 27911e0fb50e
children 2a258985ffeb
comparison
equal deleted inserted replaced
36582:27911e0fb50e 36583:edf736c3c064
408 [255] 408 [255]
409 $ log 'date(' 409 $ log 'date('
410 hg: parse error at 5: not a prefix: end 410 hg: parse error at 5: not a prefix: end
411 [255] 411 [255]
412 $ log 'date("\xy")' 412 $ log 'date("\xy")'
413 hg: parse error: invalid \x escape 413 hg: parse error: invalid \x escape* (glob)
414 [255] 414 [255]
415 $ log 'date(tip)' 415 $ log 'date(tip)'
416 hg: parse error: invalid date: 'tip' 416 hg: parse error: invalid date: 'tip'
417 [255] 417 [255]
418 $ log '0:date' 418 $ log '0:date'
1307 6 1307 6
1308 $ try 'grep("(")' # invalid regular expression 1308 $ try 'grep("(")' # invalid regular expression
1309 (func 1309 (func
1310 (symbol 'grep') 1310 (symbol 'grep')
1311 (string '(')) 1311 (string '('))
1312 hg: parse error: invalid match pattern: unbalanced parenthesis 1312 hg: parse error: invalid match pattern: (unbalanced parenthesis|missing \),.*) (re)
1313 [255] 1313 [255]
1314 $ try 'grep("\bissue\d+")' 1314 $ try 'grep("\bissue\d+")'
1315 (func 1315 (func
1316 (symbol 'grep') 1316 (symbol 'grep')
1317 (string '\x08issue\\d+')) 1317 (string '\x08issue\\d+'))