##// END OF EJS Templates
cmdserver: invalidate the dirstate when running commands (issue3271)...
Idan Kamara -
r16114:acfca07a stable
parent child Browse files
Show More
@@ -186,6 +186,7 b' class server(object):'
186 186 self.repo.baseui = copiedui
187 187 self.repo.ui = self.repo.dirstate._ui = self.repoui.copy()
188 188 self.repo.invalidate()
189 self.repo.invalidatedirstate()
189 190
190 191 req = dispatch.request(args[:], copiedui, self.repo, self.cin,
191 192 self.cout, self.cerr)
@@ -163,8 +163,10 b' def outsidechanges(server):'
163 163 f = open('a', 'ab')
164 164 f.write('a\n')
165 165 f.close()
166 runcommand(server, ['status'])
166 167 os.system('hg ci -Am2')
167 168 runcommand(server, ['tip'])
169 runcommand(server, ['status'])
168 170
169 171 def bookmarks(server):
170 172 readchannel(server)
@@ -93,6 +93,8 b' eff892de26ec tip'
93 93
94 94 testing outsidechanges:
95 95
96 runcommand status
97 M a
96 98 runcommand tip
97 99 changeset: 1:d3a0a68be6de
98 100 tag: tip
@@ -100,6 +102,7 b' user: test'
100 102 date: Thu Jan 01 00:00:00 1970 +0000
101 103 summary: 2
102 104
105 runcommand status
103 106
104 107 testing bookmarks:
105 108
General Comments 0
You need to be logged in to leave comments. Login now