changeset 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 827e0126738d
children 76630fbbf4fa
files tests/test-commandserver.py tests/test-commandserver.py.out
diffstat 2 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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