Show More
@@ -39,11 +39,11 b' class remotefilectx(context.filectx):' | |||||
39 |
|
39 | |||
40 | @propertycache |
|
40 | @propertycache | |
41 | def _changeid(self): |
|
41 | def _changeid(self): | |
42 | if '_changeid' in self.__dict__: |
|
42 | if r'_changeid' in self.__dict__: | |
43 | return self._changeid |
|
43 | return self._changeid | |
44 | elif '_changectx' in self.__dict__: |
|
44 | elif r'_changectx' in self.__dict__: | |
45 | return self._changectx.rev() |
|
45 | return self._changectx.rev() | |
46 | elif '_descendantrev' in self.__dict__: |
|
46 | elif r'_descendantrev' in self.__dict__: | |
47 | # this file context was created from a revision with a known |
|
47 | # this file context was created from a revision with a known | |
48 | # descendant, we can (lazily) correct for linkrev aliases |
|
48 | # descendant, we can (lazily) correct for linkrev aliases | |
49 | linknode = self._adjustlinknode(self._path, self._filelog, |
|
49 | linknode = self._adjustlinknode(self._path, self._filelog, | |
@@ -102,7 +102,7 b' class remotefilectx(context.filectx):' | |||||
102 | """ |
|
102 | """ | |
103 | lkr = self.linkrev() |
|
103 | lkr = self.linkrev() | |
104 | attrs = vars(self) |
|
104 | attrs = vars(self) | |
105 | noctx = not ('_changeid' in attrs or '_changectx' in attrs) |
|
105 | noctx = not (r'_changeid' in attrs or r'_changectx' in attrs) | |
106 | if noctx or self.rev() == lkr: |
|
106 | if noctx or self.rev() == lkr: | |
107 | return lkr |
|
107 | return lkr | |
108 | linknode = self._adjustlinknode(self._path, self._filelog, |
|
108 | linknode = self._adjustlinknode(self._path, self._filelog, |
General Comments 0
You need to be logged in to leave comments.
Login now