diff --git a/tests/test-commandserver.py b/tests/test-commandserver.py --- a/tests/test-commandserver.py +++ b/tests/test-commandserver.py @@ -185,6 +185,12 @@ def tagscache(server): 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 @@ if __name__ == '__main__': check(outsidechanges) check(bookmarks) check(tagscache) + check(setphase) diff --git a/tests/test-commandserver.py.out b/tests/test-commandserver.py.out --- a/tests/test-commandserver.py.out +++ b/tests/test-commandserver.py.out @@ -118,3 +118,10 @@ testing tagscache: runcommand id -t -r 0 foo + +testing setphase: + + runcommand phase -r . +2: draft + runcommand phase -r . +2: public