Show More
@@ -84,14 +84,12 b' def revancestors(repo, revs, followfirst' | |||
|
84 | 84 | gen = _genrevancestors(repo, revs, followfirst, startdepth, stopdepth) |
|
85 | 85 | return generatorset(gen, iterasc=False) |
|
86 | 86 | |
|
87 | def revdescendants(repo, revs, followfirst): | |
|
88 | """Like revlog.descendants() but supports followfirst.""" | |
|
87 | def _genrevdescendants(repo, revs, followfirst): | |
|
89 | 88 | if followfirst: |
|
90 | 89 | cut = 1 |
|
91 | 90 | else: |
|
92 | 91 | cut = None |
|
93 | 92 | |
|
94 | def iterate(): | |
|
95 | 93 |
|
|
96 | 94 |
|
|
97 | 95 |
|
@@ -111,7 +109,10 b' def revdescendants(repo, revs, followfir' | |||
|
111 | 109 |
|
|
112 | 110 |
|
|
113 | 111 | |
|
114 | return generatorset(iterate(), iterasc=True) | |
|
112 | def revdescendants(repo, revs, followfirst): | |
|
113 | """Like revlog.descendants() but supports followfirst.""" | |
|
114 | gen = _genrevdescendants(repo, revs, followfirst) | |
|
115 | return generatorset(gen, iterasc=True) | |
|
115 | 116 | |
|
116 | 117 | def _reachablerootspure(repo, minroot, roots, heads, includepath): |
|
117 | 118 | """return (heads(::<roots> and ::<heads>)) |
General Comments 0
You need to be logged in to leave comments.
Login now