backout experimental change from 777c1df76ef4
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Tue, 01 Dec 2009 01:43:46 +0100
changeset 9975 2e67734e1453
parent 9974 da5209afe1bc
child 9983 46c6bac41dc6
backout experimental change from 777c1df76ef4
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Tue Dec 01 01:08:16 2009 +0100
+++ b/mercurial/cmdutil.py	Tue Dec 01 01:43:46 2009 +0100
@@ -588,7 +588,7 @@
         initfn()
 
     if opts['pid_file']:
-        fp = open(opts['pid_file'], 'a')
+        fp = open(opts['pid_file'], 'w')
         fp.write(str(os.getpid()) + '\n')
         fp.close()