tests/test-commandserver.py
changeset 20650 e811b93f2cb1
parent 20649 9524938c8ff8
child 21195 9336bc7dca8e
--- a/tests/test-commandserver.py	Mon Mar 03 23:11:17 2014 +0900
+++ b/tests/test-commandserver.py	Mon Mar 03 23:21:24 2014 +0900
@@ -294,6 +294,11 @@
     # repo.mq should be recreated to point to new queue
     runcommand(server, ['qqueue', '--active'])
 
+def startwithoutrepo(server):
+    readchannel(server)
+    runcommand(server, ['init', 'repo2'])
+    runcommand(server, ['id', '-R', 'repo2'])
+
 if __name__ == '__main__':
     os.system('hg init repo')
     os.chdir('repo')
@@ -329,3 +334,7 @@
     hgrc.write('[extensions]\nmq=\n')
     hgrc.close()
     check(mqoutsidechanges)
+
+    os.chdir('..')
+    check(hellomessage)
+    check(startwithoutrepo)