# HG changeset patch # User Idan Kamara # Date 2012-01-25 22:21:55 # Node ID 6548a2e3228563dfb2c8ec53b947be25d4e2bbe6 # Parent 827e0126738d3ab4500eab45122d2fd37ef97f6e test-commandserver: test that phase data is being refreshed 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