Show More
@@ -192,9 +192,15 b' def rangeset(repo, subset, x, y):' | |||||
192 | return [x for x in r if x in s] |
|
192 | return [x for x in r if x in s] | |
193 |
|
193 | |||
194 | def dagrange(repo, subset, x, y): |
|
194 | def dagrange(repo, subset, x, y): | |
195 | return andset(repo, subset, |
|
195 | if subset: | |
196 | ('func', ('symbol', 'descendants'), x), |
|
196 | r = range(len(repo)) | |
197 | ('func', ('symbol', 'ancestors'), y)) |
|
197 | m = getset(repo, r, x) | |
|
198 | n = getset(repo, r, y) | |||
|
199 | cl = repo.changelog | |||
|
200 | xs = map(cl.rev, cl.nodesbetween(map(cl.node, m), map(cl.node, n))[0]) | |||
|
201 | s = set(subset) | |||
|
202 | return [r for r in xs if r in s] | |||
|
203 | return [] | |||
198 |
|
204 | |||
199 | def andset(repo, subset, x, y): |
|
205 | def andset(repo, subset, x, y): | |
200 | return getset(repo, getset(repo, subset, x), y) |
|
206 | return getset(repo, getset(repo, subset, x), y) |
General Comments 0
You need to be logged in to leave comments.
Login now