mercurial/dagop.py
changeset 48946 642e31cb55f0
parent 48875 6000f5b25c9b
child 49284 d44e3c45f0e4
equal deleted inserted replaced
48945:55d132525155 48946:642e31cb55f0
   269                 seen.add(rev)
   269                 seen.add(rev)
   270                 yield rev
   270                 yield rev
   271                 break
   271                 break
   272 
   272 
   273 
   273 
   274 class subsetparentswalker(object):
   274 class subsetparentswalker:
   275     r"""Scan adjacent ancestors in the graph given by the subset
   275     r"""Scan adjacent ancestors in the graph given by the subset
   276 
   276 
   277     This computes parent-child relations in the sub graph filtered by
   277     This computes parent-child relations in the sub graph filtered by
   278     a revset. Primary use case is to draw a revisions graph.
   278     a revset. Primary use case is to draw a revisions graph.
   279 
   279 
   645         if inrange:
   645         if inrange:
   646             yield c, linerange1
   646             yield c, linerange1
   647 
   647 
   648 
   648 
   649 @attr.s(slots=True, frozen=True)
   649 @attr.s(slots=True, frozen=True)
   650 class annotateline(object):
   650 class annotateline:
   651     fctx = attr.ib()
   651     fctx = attr.ib()
   652     lineno = attr.ib()
   652     lineno = attr.ib()
   653     # Whether this annotation was the result of a skip-annotate.
   653     # Whether this annotation was the result of a skip-annotate.
   654     skip = attr.ib(default=False)
   654     skip = attr.ib(default=False)
   655     text = attr.ib(default=None)
   655     text = attr.ib(default=None)
   656 
   656 
   657 
   657 
   658 @attr.s(slots=True, frozen=True)
   658 @attr.s(slots=True, frozen=True)
   659 class _annotatedfile(object):
   659 class _annotatedfile:
   660     # list indexed by lineno - 1
   660     # list indexed by lineno - 1
   661     fctxs = attr.ib()
   661     fctxs = attr.ib()
   662     linenos = attr.ib()
   662     linenos = attr.ib()
   663     skips = attr.ib()
   663     skips = attr.ib()
   664     # full file content
   664     # full file content