Show More
@@ -760,7 +760,20 b' class revlog(object):' | |||||
760 | self._chainbasecache.clear() |
|
760 | self._chainbasecache.clear() | |
761 | self._chunkcache = (0, b'') |
|
761 | self._chunkcache = (0, b'') | |
762 | self._pcache = {} |
|
762 | self._pcache = {} | |
|
763 | self._nodemap_docket = None | |||
763 | self.index.clearcaches() |
|
764 | self.index.clearcaches() | |
|
765 | # The python code is the one responsible for validating the docket, we | |||
|
766 | # end up having to refresh it here. | |||
|
767 | use_nodemap = ( | |||
|
768 | not self._inline | |||
|
769 | and self.nodemap_file is not None | |||
|
770 | and util.safehasattr(self.index, 'update_nodemap_data') | |||
|
771 | ) | |||
|
772 | if use_nodemap: | |||
|
773 | nodemap_data = nodemaputil.persisted_data(self) | |||
|
774 | if nodemap_data is not None: | |||
|
775 | self._nodemap_docket = nodemap_data[0] | |||
|
776 | self.index.update_nodemap_data(*nodemap_data) | |||
764 |
|
777 | |||
765 | def rev(self, node): |
|
778 | def rev(self, node): | |
766 | try: |
|
779 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now