test-commandserver: test that phase data is being refreshed stable
authorIdan Kamara <idankk86@gmail.com>
Thu, 26 Jan 2012 00:21:55 +0200
branchstable
changeset 15989 6548a2e32285
parent 15988 827e0126738d
child 15990 76630fbbf4fa
test-commandserver: test that phase data is being refreshed
tests/test-commandserver.py
tests/test-commandserver.py.out
--- a/tests/test-commandserver.py	Thu Jan 26 00:21:54 2012 +0200
+++ b/tests/test-commandserver.py	Thu Jan 26 00:21:55 2012 +0200
@@ -185,6 +185,12 @@
     os.system('hg tag -r 0 foo')
     runcommand(server, ['id', '-t', '-r', '0'])
 
+def setphase(server):
+    readchannel(server)
+    runcommand(server, ['phase', '-r', '.'])
+    os.system('hg phase -r . -p')
+    runcommand(server, ['phase', '-r', '.'])
+
 if __name__ == '__main__':
     os.system('hg init')
 
@@ -203,3 +209,4 @@
     check(outsidechanges)
     check(bookmarks)
     check(tagscache)
+    check(setphase)
--- a/tests/test-commandserver.py.out	Thu Jan 26 00:21:54 2012 +0200
+++ b/tests/test-commandserver.py.out	Thu Jan 26 00:21:55 2012 +0200
@@ -118,3 +118,10 @@
 
  runcommand id -t -r 0
 foo
+
+testing setphase:
+
+ runcommand phase -r .
+2: draft
+ runcommand phase -r .
+2: public