tests/test-ancestor.py
changeset 30402 945f8229b30d
parent 28774 21a507f9a6cd
child 30559 d83ca854fa21
equal deleted inserted replaced
30401:869d660b8669 30402:945f8229b30d
     9 import time
     9 import time
    10 
    10 
    11 from mercurial.node import nullrev
    11 from mercurial.node import nullrev
    12 from mercurial import (
    12 from mercurial import (
    13     ancestor,
    13     ancestor,
    14     commands,
    14     debugcommands,
    15     hg,
    15     hg,
    16     ui as uimod,
    16     ui as uimod,
    17     util,
    17     util,
    18 )
    18 )
    19 
    19 
   224         cl = repo.changelog
   224         cl = repo.changelog
   225         if not util.safehasattr(cl.index, 'ancestors'):
   225         if not util.safehasattr(cl.index, 'ancestors'):
   226             # C version not available
   226             # C version not available
   227             return
   227             return
   228 
   228 
   229         commands.debugbuilddag(u, repo, dag)
   229         debugcommands.debugbuilddag(u, repo, dag)
   230         # Compare the results of the Python and C versions. This does not
   230         # Compare the results of the Python and C versions. This does not
   231         # include choosing a winner when more than one gca exists -- we make
   231         # include choosing a winner when more than one gca exists -- we make
   232         # sure both return exactly the same set of gcas.
   232         # sure both return exactly the same set of gcas.
   233         for a in cl:
   233         for a in cl:
   234             for b in cl:
   234             for b in cl: