Show More
@@ -769,10 +769,17 b' class basefilectx(object):' | |||||
769 | 'linkrev-shadowing' when a file revision is used by multiple |
|
769 | 'linkrev-shadowing' when a file revision is used by multiple | |
770 | changesets. |
|
770 | changesets. | |
771 | """ |
|
771 | """ | |
|
772 | toprev = None | |||
772 | attrs = vars(self) |
|
773 | attrs = vars(self) | |
773 | hastoprev = (r'_changeid' in attrs or r'_changectx' in attrs) |
|
774 | if r'_changeid' in attrs: | |
774 | if hastoprev: |
|
775 | # We have a cached value already | |
775 | return self._adjustlinkrev(self.rev(), inclusive=True) |
|
776 | toprev = self._changeid | |
|
777 | elif r'_changectx' in attrs: | |||
|
778 | # We know which changelog entry we are coming from | |||
|
779 | toprev = self._changectx.rev() | |||
|
780 | ||||
|
781 | if toprev is not None: | |||
|
782 | return self._adjustlinkrev(toprev, inclusive=True) | |||
776 | else: |
|
783 | else: | |
777 | return self.linkrev() |
|
784 | return self.linkrev() | |
778 |
|
785 |
General Comments 0
You need to be logged in to leave comments.
Login now