diff tests/test-commandserver.py @ 16201:fb7c4c14223f stable

dirstate: filecacheify _branch The opener is relative to .hg, use it in a subclass of filecache to compute the final path.
author Idan Kamara <idankk86@gmail.com>
date Thu, 01 Mar 2012 17:42:49 +0200
parents 6ecf5fb2a475
children 53e2cd303ecf
line wrap: on
line diff
--- a/tests/test-commandserver.py	Thu Mar 01 17:39:58 2012 +0200
+++ b/tests/test-commandserver.py	Thu Mar 01 17:42:49 2012 +0200
@@ -212,6 +212,13 @@
     runcommand(server, ['rollback'])
     runcommand(server, ['phase', '-r', '.'])
 
+def branch(server):
+    readchannel(server)
+    runcommand(server, ['branch'])
+    os.system('hg branch foo')
+    runcommand(server, ['branch'])
+    os.system('hg branch default')
+
 if __name__ == '__main__':
     os.system('hg init')
 
@@ -232,3 +239,4 @@
     check(tagscache)
     check(setphase)
     check(rollback)
+    check(branch)