tests/test-commandserver.py
changeset 20628 e3d1df48fcc6
parent 20396 a8e6ab7eb361
child 20629 277dc5f27310
--- a/tests/test-commandserver.py	Mon Mar 03 19:41:23 2014 +0900
+++ b/tests/test-commandserver.py	Mon Mar 03 19:41:26 2014 +0900
@@ -274,6 +274,15 @@
     runcommand(server, ['log', '--hidden'])
     runcommand(server, ['log'])
 
+def mqoutsidechanges(server):
+    readchannel(server)
+
+    # load repo.mq
+    runcommand(server, ['qapplied'])
+    os.system('hg qnew 0.diff')
+    # repo.mq should be invalidated
+    runcommand(server, ['qapplied'])
+
 if __name__ == '__main__':
     os.system('hg init')
 
@@ -304,3 +313,7 @@
     hgrc.write('[extensions]\nobs=obs.py\n')
     hgrc.close()
     check(obsolete)
+    hgrc = open('.hg/hgrc', 'a')
+    hgrc.write('[extensions]\nmq=\n')
+    hgrc.close()
+    check(mqoutsidechanges)