diff tests/test-revset.t @ 26537:832feae7c986

revset: do not fall through to revspec for literal: branch (issue4838) If "literal:" is specified, it must not be a revset expression. It should error out with a better message.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 07 Oct 2015 23:00:29 +0900
parents 43f9976346e9
children 7afaf2566e25
line wrap: on
line diff
--- a/tests/test-revset.t	Wed Oct 07 21:08:14 2015 +0100
+++ b/tests/test-revset.t	Wed Oct 07 23:00:29 2015 +0900
@@ -1328,6 +1328,9 @@
   $ log 'branch(unknown)'
   abort: unknown revision 'unknown'!
   [255]
+  $ log 'branch("literal:unknown")'
+  abort: branch 'unknown' does not exist!
+  [255]
   $ log 'branch("re:unknown")'
   $ log 'present(branch("unknown"))'
   $ log 'present(branch("re:unknown"))'