# HG changeset patch # User Matt Mackall # Date 1395183387 18000 # Node ID 8ecfa225bd16803d7b53153b29bc3958f2e53606 # Parent 403f1f73d30fb9421c498ac4e7fdb7ee5e3be78c revrange: pass repo to revset parser This allows handling of hyphenated symbols for command-line revsets. diff -r 403f1f73d30f -r 8ecfa225bd16 mercurial/scmutil.py --- a/mercurial/scmutil.py Tue Mar 18 17:54:42 2014 -0500 +++ b/mercurial/scmutil.py Tue Mar 18 17:56:27 2014 -0500 @@ -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 diff -r 403f1f73d30f -r 8ecfa225bd16 tests/test-revset.t --- a/tests/test-revset.t Tue Mar 18 17:54:42 2014 -0500 +++ b/tests/test-revset.t Tue Mar 18 17:56:27 2014 -0500 @@ -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'