##// END OF EJS Templates
merge: sort arguments to stabilize the ancestor search
Matt Mackall -
r11418:67bb9d78 default
parent child Browse files
Show More
@@ -19,6 +19,8 b' def ancestor(a, b, pfunc):'
19 if a == b:
19 if a == b:
20 return a
20 return a
21
21
22 a, b = sorted([a, b])
23
22 # find depth from root of all ancestors
24 # find depth from root of all ancestors
23 parentcache = {}
25 parentcache = {}
24 visit = [a, b]
26 visit = [a, b]
General Comments 0
You need to be logged in to leave comments. Login now