comparison mercurial/repository.py @ 39785:979e9f124caa

filelog: stop proxying headrevs() (API) The previous commit removed the last user of this method. It is redundant with heads() and adds little to no value other than convenience. Let's nuke it. Differential Revision: https://phab.mercurial-scm.org/D4663
author Gregory Szorc <gregory.szorc@gmail.com>
date Tue, 18 Sep 2018 19:26:44 -0700
parents a6b3c4c1019f
children 97986c9c69d3
comparison
equal deleted inserted replaced
39784:be0f32ca2671 39785:979e9f124caa
523 """Obtain descendant revision numbers for a set of revision numbers. 523 """Obtain descendant revision numbers for a set of revision numbers.
524 524
525 If ``nullrev`` is in the set, this is equivalent to ``revs()``. 525 If ``nullrev`` is in the set, this is equivalent to ``revs()``.
526 """ 526 """
527 527
528 def headrevs():
529 """Obtain a list of revision numbers that are DAG heads.
530
531 The list is sorted oldest to newest.
532
533 TODO determine if sorting is required.
534 """
535
536 def heads(start=None, stop=None): 528 def heads(start=None, stop=None):
537 """Obtain a list of nodes that are DAG heads, with control. 529 """Obtain a list of nodes that are DAG heads, with control.
538 530
539 The set of revisions examined can be limited by specifying 531 The set of revisions examined can be limited by specifying
540 ``start`` and ``stop``. ``start`` is a node. ``stop`` is an 532 ``start`` and ``stop``. ``start`` is a node. ``stop`` is an