Mercurial > hg
comparison mercurial/localrepo.py @ 18314:3c3855470b19
rollback: don't clear the filecache
This was an old workaround to force the filecache to reload everything. Now
that the syncing issue is fixed, we no longer need it.
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Wed, 09 Jan 2013 20:36:53 +0200 |
parents | 3e4a944c0d04 |
children | 948f495fb230 |
comparison
equal
deleted
inserted
replaced
18313:3e4a944c0d04 | 18314:3c3855470b19 |
---|---|
902 self.join('bookmarks')) | 902 self.join('bookmarks')) |
903 if os.path.exists(self.sjoin('undo.phaseroots')): | 903 if os.path.exists(self.sjoin('undo.phaseroots')): |
904 util.rename(self.sjoin('undo.phaseroots'), | 904 util.rename(self.sjoin('undo.phaseroots'), |
905 self.sjoin('phaseroots')) | 905 self.sjoin('phaseroots')) |
906 self.invalidate() | 906 self.invalidate() |
907 | |
908 # Discard all cache entries to force reloading everything. | |
909 self._filecache.clear() | |
910 | 907 |
911 parentgone = (parents[0] not in self.changelog.nodemap or | 908 parentgone = (parents[0] not in self.changelog.nodemap or |
912 parents[1] not in self.changelog.nodemap) | 909 parents[1] not in self.changelog.nodemap) |
913 if parentgone: | 910 if parentgone: |
914 util.rename(self.join('undo.dirstate'), self.join('dirstate')) | 911 util.rename(self.join('undo.dirstate'), self.join('dirstate')) |