##// END OF EJS Templates
copies: use node.wdirrev instead of inventing another constant for it...
Martin von Zweigbergk -
r41267:e3e1b063 default
parent child Browse files
Show More
@@ -46,22 +46,21 b' def _findlimit(repo, a, b):'
46 46 # - quit when interesting revs is zero
47 47
48 48 cl = repo.changelog
49 working = len(cl) # pseudo rev for the working directory
50 49 if a is None:
51 a = working
50 a = node.wdirrev
52 51 if b is None:
53 b = working
52 b = node.wdirrev
54 53
55 54 side = {a: -1, b: 1}
56 55 visit = [-a, -b]
57 56 heapq.heapify(visit)
58 57 interesting = len(visit)
59 58 hascommonancestor = False
60 limit = working
59 limit = node.wdirrev
61 60
62 61 while interesting:
63 62 r = -heapq.heappop(visit)
64 if r == working:
63 if r == node.wdirrev:
65 64 parents = [cl.rev(p) for p in repo.dirstate.parents()]
66 65 else:
67 66 parents = cl.parentrevs(r)
General Comments 0
You need to be logged in to leave comments. Login now