mercurial/revlog.py
changeset 48913 f254fc73d956
parent 48875 6000f5b25c9b
child 48928 ceafb0f81250
equal deleted inserted replaced
48912:a0674e916fb6 48913:f254fc73d956
  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)