Show More
@@ -550,6 +550,9 b' class basefilectx(object):' | |||||
550 | return [filectx(self._repo, p, fileid=n, filelog=l) |
|
550 | return [filectx(self._repo, p, fileid=n, filelog=l) | |
551 | for p, n, l in pl if n != nullid] |
|
551 | for p, n, l in pl if n != nullid] | |
552 |
|
552 | |||
|
553 | def p1(self): | |||
|
554 | return self.parents()[0] | |||
|
555 | ||||
553 | class filectx(basefilectx): |
|
556 | class filectx(basefilectx): | |
554 | """A filecontext object makes access to data related to a particular |
|
557 | """A filecontext object makes access to data related to a particular | |
555 | filerevision convenient.""" |
|
558 | filerevision convenient.""" | |
@@ -635,9 +638,6 b' class filectx(basefilectx):' | |||||
635 | pass |
|
638 | pass | |
636 | return renamed |
|
639 | return renamed | |
637 |
|
640 | |||
638 | def p1(self): |
|
|||
639 | return self.parents()[0] |
|
|||
640 |
|
||||
641 | def p2(self): |
|
641 | def p2(self): | |
642 | p = self.parents() |
|
642 | p = self.parents() | |
643 | if len(p) == 2: |
|
643 | if len(p) == 2: |
General Comments 0
You need to be logged in to leave comments.
Login now