equal
deleted
inserted
replaced
1303 # will eventually remove it. |
1303 # will eventually remove it. |
1304 heads[n] = True |
1304 heads[n] = True |
1305 # But, obviously its parents aren't. |
1305 # But, obviously its parents aren't. |
1306 for p in self.parents(n): |
1306 for p in self.parents(n): |
1307 heads.pop(p, None) |
1307 heads.pop(p, None) |
1308 heads = [head for head, flag in pycompat.iteritems(heads) if flag] |
1308 heads = [head for head, flag in heads.items() if flag] |
1309 roots = list(roots) |
1309 roots = list(roots) |
1310 assert orderedout |
1310 assert orderedout |
1311 assert roots |
1311 assert roots |
1312 assert heads |
1312 assert heads |
1313 return (orderedout, roots, heads) |
1313 return (orderedout, roots, heads) |