Show More
@@ -634,21 +634,14 b' class filectx(object):' | |||||
634 |
|
634 | |||
635 | return zip(hist[base][0], hist[base][1].splitlines(True)) |
|
635 | return zip(hist[base][0], hist[base][1].splitlines(True)) | |
636 |
|
636 | |||
637 |
def ancestor(self, fc2, actx |
|
637 | def ancestor(self, fc2, actx): | |
638 | """ |
|
638 | """ | |
639 | find the common ancestor file context, if any, of self, and fc2 |
|
639 | find the common ancestor file context, if any, of self, and fc2 | |
640 |
|
640 | |||
641 |
|
|
641 | actx must be the changectx of the common ancestor | |
642 | of self's and fc2's respective changesets. |
|
642 | of self's and fc2's respective changesets. | |
643 | """ |
|
643 | """ | |
644 |
|
644 | |||
645 | if actx is None: |
|
|||
646 | actx = self.changectx().ancestor(fc2.changectx()) |
|
|||
647 |
|
||||
648 | # the trivial case: changesets are unrelated, files must be too |
|
|||
649 | if not actx: |
|
|||
650 | return None |
|
|||
651 |
|
||||
652 | # the easy case: no (relevant) renames |
|
645 | # the easy case: no (relevant) renames | |
653 | if fc2.path() == self.path() and self.path() in actx: |
|
646 | if fc2.path() == self.path() and self.path() in actx: | |
654 | return actx[self.path()] |
|
647 | return actx[self.path()] |
General Comments 0
You need to be logged in to leave comments.
Login now