Show More
@@ -254,10 +254,16 b' class filectx(object):' | |||
|
254 | 254 | |
|
255 | 255 | return [ getctx(p, n) for p, n in pl if n != -1 ] |
|
256 | 256 | |
|
257 | # use linkrev to find the first changeset where self appeared | |
|
258 | if self.rev() != self._filelog.linkrev(self._filenode): | |
|
259 | base = self.filectx(self.filerev()) | |
|
260 | else: | |
|
261 | base = self | |
|
262 | ||
|
257 | 263 | # find all ancestors |
|
258 |
needed = {se |
|
|
259 |
visit = [se |
|
|
260 |
files = [se |
|
|
264 | needed = {base: 1} | |
|
265 | visit = [base] | |
|
266 | files = [base._path] | |
|
261 | 267 | while visit: |
|
262 | 268 | f = visit.pop(0) |
|
263 | 269 | for p in parents(f): |
General Comments 0
You need to be logged in to leave comments.
Login now