Mercurial > public > mercurial-scm > hg
comparison tests/test-commandserver.py @ 15989:6548a2e32285 stable
test-commandserver: test that phase data is being refreshed
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Thu, 26 Jan 2012 00:21:55 +0200 |
parents | e19302598df8 |
children | acfca07a8f26 |
comparison
equal
deleted
inserted
replaced
15988:827e0126738d | 15989:6548a2e32285 |
---|---|
183 readchannel(server) | 183 readchannel(server) |
184 runcommand(server, ['id', '-t', '-r', '0']) | 184 runcommand(server, ['id', '-t', '-r', '0']) |
185 os.system('hg tag -r 0 foo') | 185 os.system('hg tag -r 0 foo') |
186 runcommand(server, ['id', '-t', '-r', '0']) | 186 runcommand(server, ['id', '-t', '-r', '0']) |
187 | 187 |
188 def setphase(server): | |
189 readchannel(server) | |
190 runcommand(server, ['phase', '-r', '.']) | |
191 os.system('hg phase -r . -p') | |
192 runcommand(server, ['phase', '-r', '.']) | |
193 | |
188 if __name__ == '__main__': | 194 if __name__ == '__main__': |
189 os.system('hg init') | 195 os.system('hg init') |
190 | 196 |
191 check(hellomessage) | 197 check(hellomessage) |
192 check(unknowncommand) | 198 check(unknowncommand) |
201 check(localhgrc) | 207 check(localhgrc) |
202 check(hookoutput) | 208 check(hookoutput) |
203 check(outsidechanges) | 209 check(outsidechanges) |
204 check(bookmarks) | 210 check(bookmarks) |
205 check(tagscache) | 211 check(tagscache) |
212 check(setphase) |