Show More
@@ -258,6 +258,11 b' def _splitrange(a, b):' | |||||
258 | def generationsrel(repo, subset, x, rel, a, b, order): |
|
258 | def generationsrel(repo, subset, x, rel, a, b, order): | |
259 | # TODO: rewrite tests, and drop startdepth argument from ancestors() and |
|
259 | # TODO: rewrite tests, and drop startdepth argument from ancestors() and | |
260 | # descendants() predicates |
|
260 | # descendants() predicates | |
|
261 | if a is None: | |||
|
262 | a = -(dagop.maxlogdepth - 1) | |||
|
263 | if b is None: | |||
|
264 | b = +(dagop.maxlogdepth - 1) | |||
|
265 | ||||
261 | (ancstart, ancstop), (descstart, descstop) = _splitrange(a, b) |
|
266 | (ancstart, ancstop), (descstart, descstop) = _splitrange(a, b) | |
262 |
|
267 | |||
263 | if ancstart is None and descstart is None: |
|
268 | if ancstart is None and descstart is None: | |
@@ -294,10 +299,6 b' def relsubscriptset(repo, subset, x, y, ' | |||||
294 | msg = _("relation subscript bounds must be integers") |
|
299 | msg = _("relation subscript bounds must be integers") | |
295 | return getinteger(i, msg) |
|
300 | return getinteger(i, msg) | |
296 | a, b = [getbound(i) for i in (a, b)] |
|
301 | a, b = [getbound(i) for i in (a, b)] | |
297 | if a is None: |
|
|||
298 | a = -(dagop.maxlogdepth - 1) |
|
|||
299 | if b is None: |
|
|||
300 | b = +(dagop.maxlogdepth - 1) |
|
|||
301 |
|
302 | |||
302 | if rel in subscriptrelations: |
|
303 | if rel in subscriptrelations: | |
303 | return subscriptrelations[rel](repo, subset, x, rel, a, b, order) |
|
304 | return subscriptrelations[rel](repo, subset, x, rel, a, b, order) |
General Comments 0
You need to be logged in to leave comments.
Login now