Skip to content
Snippets Groups Projects
Commit 8ecfa225 authored by Matt Mackall's avatar Matt Mackall
Browse files

revrange: pass repo to revset parser

This allows handling of hyphenated symbols for command-line revsets.
parent 403f1f73
No related branches found
No related tags found
No related merge requests found
......@@ -533,7 +533,7 @@
pass
# fall through to new-style queries if old-style fails
m = revset.match(repo.ui, spec)
m = revset.match(repo.ui, spec, repo)
if seen or l:
dl = [r for r in m(repo, revset.spanset(repo)) if r not in seen]
l = l + dl
......
......@@ -124,6 +124,7 @@
[255]
$ log -a-b-c- # succeeds with fallback
4
$ try -- -a-b-c--a # complains
(minus
(minus
......@@ -140,6 +141,13 @@
('symbol', '\xc3\xa9')
9
no quoting needed
$ log ::a-b-c-
0
1
2
quoting needed
$ try '"-a-b-c-"-a'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment