comparison tests/test-revset.t @ 20781:8ecfa225bd16

revrange: pass repo to revset parser This allows handling of hyphenated symbols for command-line revsets.
author Matt Mackall <mpm@selenic.com>
date Tue, 18 Mar 2014 17:56:27 -0500
parents b0203624ab20
children 170d6d591a7d
comparison
equal deleted inserted replaced
20780:403f1f73d30f 20781:8ecfa225bd16
122 $ try -- '-a-b-c-' # complains 122 $ try -- '-a-b-c-' # complains
123 hg: parse error at 7: not a prefix: end 123 hg: parse error at 7: not a prefix: end
124 [255] 124 [255]
125 $ log -a-b-c- # succeeds with fallback 125 $ log -a-b-c- # succeeds with fallback
126 4 126 4
127
127 $ try -- -a-b-c--a # complains 128 $ try -- -a-b-c--a # complains
128 (minus 129 (minus
129 (minus 130 (minus
130 (minus 131 (minus
131 (negate 132 (negate
137 abort: unknown revision '-a'! 138 abort: unknown revision '-a'!
138 [255] 139 [255]
139 $ try é 140 $ try é
140 ('symbol', '\xc3\xa9') 141 ('symbol', '\xc3\xa9')
141 9 142 9
143
144 no quoting needed
145
146 $ log ::a-b-c-
147 0
148 1
149 2
142 150
143 quoting needed 151 quoting needed
144 152
145 $ try '"-a-b-c-"-a' 153 $ try '"-a-b-c-"-a'
146 (minus 154 (minus