comparison mercurial/commandserver.py @ 16114:acfca07a8f26 stable

cmdserver: invalidate the dirstate when running commands (issue3271) The dirstate is invalidated separately outside of invalidate() which is already being called (other callers of invalidate() seems to suggest the separation is there for a reason).
author Idan Kamara <idankk86@gmail.com>
date Wed, 15 Feb 2012 23:44:10 +0200
parents b4c06b97dfe0
children 525fdb738975
comparison
equal deleted inserted replaced
16113:3f75fb837638 16114:acfca07a8f26
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 self.repo.invalidate()
189 self.repo.invalidatedirstate()
189 190
190 req = dispatch.request(args[:], copiedui, self.repo, self.cin, 191 req = dispatch.request(args[:], copiedui, self.repo, self.cin,
191 self.cout, self.cerr) 192 self.cout, self.cerr)
192 193
193 ret = dispatch.dispatch(req) or 0 # might return None 194 ret = dispatch.dispatch(req) or 0 # might return None