##// END OF EJS Templates
revset: hook into revrange
Matt Mackall -
r11277:2698a95f default
parent child Browse files
Show More
@@ -10,7 +10,7 b' from i18n import _'
10 import os, sys, errno, re, glob, tempfile
10 import os, sys, errno, re, glob, tempfile
11 import util, templater, patch, error, encoding, templatekw
11 import util, templater, patch, error, encoding, templatekw
12 import match as _match
12 import match as _match
13 import similar
13 import similar, revset
14
14
15 revrangesep = ':'
15 revrangesep = ':'
16
16
@@ -149,7 +149,13 b' def revrange(repo, revs):'
149
149
150 seen, l = set(), []
150 seen, l = set(), []
151 for spec in revs:
151 for spec in revs:
152 if revrangesep in spec:
152 if spec and not (
153 spec.startswith(revrangesep) or spec.endswith(revrangesep)):
154 m = revset.match(spec)
155 for r in m(repo, range(len(repo))):
156 l.append(r)
157 seen.update(l)
158 elif revrangesep in spec:
153 start, end = spec.split(revrangesep, 1)
159 start, end = spec.split(revrangesep, 1)
154 start = revfix(repo, start, 0)
160 start = revfix(repo, start, 0)
155 end = revfix(repo, end, len(repo) - 1)
161 end = revfix(repo, end, len(repo) - 1)
General Comments 0
You need to be logged in to leave comments. Login now