diff mercurial/commandserver.py @ 14939:b4c06b97dfe0

cmdserver: repo.invalidate() on every runcommand This will trigger the filecache and recreate every cached property that was changed by something other than this cmdserver instance (e.g. by running 'hg commit' at the cmdline).
author Idan Kamara <idankk86@gmail.com>
date Mon, 25 Jul 2011 22:19:28 +0300
parents bb2cffe81a94
children acfca07a8f26
line wrap: on
line diff
--- a/mercurial/commandserver.py	Mon Jul 25 08:28:37 2011 +0200
+++ b/mercurial/commandserver.py	Mon Jul 25 22:19:28 2011 +0300
@@ -185,6 +185,7 @@
         copiedui = self.ui.copy()
         self.repo.baseui = copiedui
         self.repo.ui = self.repo.dirstate._ui = self.repoui.copy()
+        self.repo.invalidate()
 
         req = dispatch.request(args[:], copiedui, self.repo, self.cin,
                                self.cout, self.cerr)