##// END OF EJS Templates
copies: use node.nullrev instead of literal -1...
Martin von Zweigbergk -
r41268:f3f5bfbf default
parent child Browse files
Show More
@@ -131,7 +131,7 b' def _chain(src, dst, a, b):'
131
131
132 return t
132 return t
133
133
134 def _tracefile(fctx, am, limit=-1):
134 def _tracefile(fctx, am, limit=node.nullrev):
135 """return file context that is the ancestor of fctx present in ancestor
135 """return file context that is the ancestor of fctx present in ancestor
136 manifest am, stopping after the first ancestor lower than limit"""
136 manifest am, stopping after the first ancestor lower than limit"""
137
137
@@ -170,7 +170,7 b' def _committedforwardcopies(a, b, match)'
170 % (a, b))
170 % (a, b))
171 limit = _findlimit(repo, a.rev(), b.rev())
171 limit = _findlimit(repo, a.rev(), b.rev())
172 if limit is None:
172 if limit is None:
173 limit = -1
173 limit = node.nullrev
174 if debug:
174 if debug:
175 dbg('debug.copies: search limit: %d\n' % limit)
175 dbg('debug.copies: search limit: %d\n' % limit)
176 am = a.manifest()
176 am = a.manifest()
General Comments 0
You need to be logged in to leave comments. Login now