Mercurial > public > mercurial-scm > hg
comparison tests/test-commandserver.py @ 20629:277dc5f27310
cmdserver: recreate mq object on runcommand in case queue path was changed
repo.mq needs to be recreated after queue path change. Since there is little
benefit to keep invalidated mq object, it always delete repo.mq.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 03 Mar 2014 19:41:30 +0900 |
parents | e3d1df48fcc6 |
children | 0b04ee8e789d |
comparison
equal
deleted
inserted
replaced
20628:e3d1df48fcc6 | 20629:277dc5f27310 |
---|---|
280 # load repo.mq | 280 # load repo.mq |
281 runcommand(server, ['qapplied']) | 281 runcommand(server, ['qapplied']) |
282 os.system('hg qnew 0.diff') | 282 os.system('hg qnew 0.diff') |
283 # repo.mq should be invalidated | 283 # repo.mq should be invalidated |
284 runcommand(server, ['qapplied']) | 284 runcommand(server, ['qapplied']) |
285 | |
286 runcommand(server, ['qpop', '--all']) | |
287 os.system('hg qqueue --create foo') | |
288 # repo.mq should be recreated to point to new queue | |
289 runcommand(server, ['qqueue', '--active']) | |
285 | 290 |
286 if __name__ == '__main__': | 291 if __name__ == '__main__': |
287 os.system('hg init') | 292 os.system('hg init') |
288 | 293 |
289 check(hellomessage) | 294 check(hellomessage) |