Show More
@@ -108,12 +108,12 b' def ancestors(pfunc, *orignodes):' | |||||
108 | if p == nullrev: |
|
108 | if p == nullrev: | |
109 | continue |
|
109 | continue | |
110 | dp = depth[p] |
|
110 | dp = depth[p] | |
111 |
|
|
111 | sp = seen[p] | |
112 | if dp <= dv: |
|
112 | if dp <= dv: | |
113 | depth[p] = dv + 1 |
|
113 | depth[p] = dv + 1 | |
114 | if sp != sv: |
|
114 | if sp != sv: | |
115 | interesting[sv] += 1 |
|
115 | interesting[sv] += 1 | |
116 |
|
|
116 | seen[p] = sv | |
117 | if sp: |
|
117 | if sp: | |
118 | interesting[sp] -= 1 |
|
118 | interesting[sp] -= 1 | |
119 | if interesting[sp] == 0: |
|
119 | if interesting[sp] == 0: |
General Comments 0
You need to be logged in to leave comments.
Login now