diff mercurial/scmutil.py @ 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 b93791e0de25
children 170d6d591a7d
line wrap: on
line diff
--- 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