Show More
@@ -402,6 +402,15 b' class filectx(object):' | |||||
402 | return [filectx(self._repo, p, fileid=n, filelog=l) |
|
402 | return [filectx(self._repo, p, fileid=n, filelog=l) | |
403 | for p, n, l in pl if n != nullid] |
|
403 | for p, n, l in pl if n != nullid] | |
404 |
|
404 | |||
|
405 | def p1(self): | |||
|
406 | return self.parents()[0] | |||
|
407 | ||||
|
408 | def p2(self): | |||
|
409 | p = self.parents() | |||
|
410 | if len(p) == 2: | |||
|
411 | return p[1] | |||
|
412 | return filectx(self._repo, self._path, fileid=-1, filelog=self._filelog) | |||
|
413 | ||||
405 | def children(self): |
|
414 | def children(self): | |
406 | # hard for renames |
|
415 | # hard for renames | |
407 | c = self._filelog.children(self._filenode) |
|
416 | c = self._filelog.children(self._filenode) |
General Comments 0
You need to be logged in to leave comments.
Login now