Show More
@@ -769,10 +769,17 b' class basefilectx(object):' | |||
|
769 | 769 | 'linkrev-shadowing' when a file revision is used by multiple |
|
770 | 770 | changesets. |
|
771 | 771 | """ |
|
772 | toprev = None | |
|
772 | 773 | attrs = vars(self) |
|
773 | hastoprev = (r'_changeid' in attrs or r'_changectx' in attrs) | |
|
774 | if hastoprev: | |
|
775 | return self._adjustlinkrev(self.rev(), inclusive=True) | |
|
774 | if r'_changeid' in attrs: | |
|
775 | # We have a cached value already | |
|
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 | 783 | else: |
|
777 | 784 | return self.linkrev() |
|
778 | 785 |
General Comments 0
You need to be logged in to leave comments.
Login now