Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
20780:403f1f73d30f | 20781:8ecfa225bd16 |
---|---|
531 continue | 531 continue |
532 except error.RepoLookupError: | 532 except error.RepoLookupError: |
533 pass | 533 pass |
534 | 534 |
535 # fall through to new-style queries if old-style fails | 535 # fall through to new-style queries if old-style fails |
536 m = revset.match(repo.ui, spec) | 536 m = revset.match(repo.ui, spec, repo) |
537 if seen or l: | 537 if seen or l: |
538 dl = [r for r in m(repo, revset.spanset(repo)) if r not in seen] | 538 dl = [r for r in m(repo, revset.spanset(repo)) if r not in seen] |
539 l = l + dl | 539 l = l + dl |
540 seen.update(dl) | 540 seen.update(dl) |
541 else: | 541 else: |