723 return (files, copies) |
723 return (files, copies) |
724 |
724 |
725 def getchanges(self, rev, full): |
725 def getchanges(self, rev, full): |
726 # reuse cache from getchangedfiles |
726 # reuse cache from getchangedfiles |
727 if self._changescache[0] == rev and not full: |
727 if self._changescache[0] == rev and not full: |
|
728 # TODO: add type hints to avoid this warning, instead of |
|
729 # suppressing it: |
|
730 # No attribute '__iter__' on None [attribute-error] |
|
731 |
|
732 # pytype: disable=attribute-error |
728 (files, copies) = self._changescache[1] |
733 (files, copies) = self._changescache[1] |
|
734 # pytype: enable=attribute-error |
729 else: |
735 else: |
730 (files, copies) = self._getchanges(rev, full) |
736 (files, copies) = self._getchanges(rev, full) |
731 # caller caches the result, so free it here to release memory |
737 # caller caches the result, so free it here to release memory |
732 del self.paths[rev] |
738 del self.paths[rev] |
733 return (files, copies, set()) |
739 return (files, copies, set()) |