Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
14938:ec18cd254156 | 14939:b4c06b97dfe0 |
---|---|
183 # copy the uis so changes (e.g. --config or --verbose) don't | 183 # copy the uis so changes (e.g. --config or --verbose) don't |
184 # persist between requests | 184 # persist between requests |
185 copiedui = self.ui.copy() | 185 copiedui = self.ui.copy() |
186 self.repo.baseui = copiedui | 186 self.repo.baseui = copiedui |
187 self.repo.ui = self.repo.dirstate._ui = self.repoui.copy() | 187 self.repo.ui = self.repo.dirstate._ui = self.repoui.copy() |
188 self.repo.invalidate() | |
188 | 189 |
189 req = dispatch.request(args[:], copiedui, self.repo, self.cin, | 190 req = dispatch.request(args[:], copiedui, self.repo, self.cin, |
190 self.cout, self.cerr) | 191 self.cout, self.cerr) |
191 | 192 |
192 ret = dispatch.dispatch(req) or 0 # might return None | 193 ret = dispatch.dispatch(req) or 0 # might return None |