Mercurial > public > mercurial-scm > hg-stable
comparison tests/test-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 | 6548a2e32285 |
children | 236bb604dc39 |
comparison
equal
deleted
inserted
replaced
16113:3f75fb837638 | 16114:acfca07a8f26 |
---|---|
161 def outsidechanges(server): | 161 def outsidechanges(server): |
162 readchannel(server) | 162 readchannel(server) |
163 f = open('a', 'ab') | 163 f = open('a', 'ab') |
164 f.write('a\n') | 164 f.write('a\n') |
165 f.close() | 165 f.close() |
166 runcommand(server, ['status']) | |
166 os.system('hg ci -Am2') | 167 os.system('hg ci -Am2') |
167 runcommand(server, ['tip']) | 168 runcommand(server, ['tip']) |
169 runcommand(server, ['status']) | |
168 | 170 |
169 def bookmarks(server): | 171 def bookmarks(server): |
170 readchannel(server) | 172 readchannel(server) |
171 runcommand(server, ['bookmarks']) | 173 runcommand(server, ['bookmarks']) |
172 | 174 |