Patchwork [06,of,10,v2] rollback: don't clear the filecache

login
register
mail settings
Submitter Idan Kamara
Date Jan. 10, 2013, 10:10 p.m.
Message ID <de68b1d50d554b7e20ef.1357855853@idan>
Download mbox | patch
Permalink /patch/555/
State Accepted
Commit 3c3855470b191eff403bdf68d747004fdac434b2
Delegated to: Kevin Bullock
Headers show

Comments

Idan Kamara - Jan. 10, 2013, 10:10 p.m.
# HG changeset patch
# User Idan Kamara <idankk86@gmail.com>
# Date 1357756613 -7200
# Node ID de68b1d50d554b7e20ef87465d497390444e3535
# Parent  1f3fe4ea7561adb4fd43b39bc01dd5533e0e2f6e
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.

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -905,9 +905,6 @@ 
                         self.sjoin('phaseroots'))
         self.invalidate()
 
-        # Discard all cache entries to force reloading everything.
-        self._filecache.clear()
-
         parentgone = (parents[0] not in self.changelog.nodemap or
                       parents[1] not in self.changelog.nodemap)
         if parentgone: