--- 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