mercurial/ancestor.py
changeset 20034 1e5b38a919dd
parent 18987 3605d4e7e618
child 20555 4add43865a9b
equal deleted inserted replaced
20033:f962870712da 20034:1e5b38a919dd
     3 # Copyright 2006 Matt Mackall <mpm@selenic.com>
     3 # Copyright 2006 Matt Mackall <mpm@selenic.com>
     4 #
     4 #
     5 # This software may be used and distributed according to the terms of the
     5 # This software may be used and distributed according to the terms of the
     6 # GNU General Public License version 2 or any later version.
     6 # GNU General Public License version 2 or any later version.
     7 
     7 
     8 import heapq, util
     8 import heapq
       
     9 import util
     9 from node import nullrev
    10 from node import nullrev
    10 
    11 
    11 def ancestors(pfunc, *orignodes):
    12 def ancestors(pfunc, *orignodes):
    12     """
    13     """
    13     Returns the common ancestors of a and b that are furthest from a
    14     Returns the common ancestors of a and b that are furthest from a