equal
deleted
inserted
replaced
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 |