diff mercurial/commandserver.py @ 28027:14033c5dd261

util: enable getpid to be replaced This will enable tests to write stable process ids.
author timeless <timeless@mozdev.org>
date Wed, 03 Feb 2016 09:11:22 +0000
parents 5f2a308bac94
children 75f586a1bf55
line wrap: on
line diff
--- a/mercurial/commandserver.py	Mon Feb 08 00:47:36 2016 +0000
+++ b/mercurial/commandserver.py	Wed Feb 03 09:11:22 2016 +0000
@@ -262,7 +262,7 @@
         hellomsg += '\n'
         hellomsg += 'encoding: ' + encoding.encoding
         hellomsg += '\n'
-        hellomsg += 'pid: %d' % os.getpid()
+        hellomsg += 'pid: %d' % util.getpid()
 
         # write the hello msg in -one- chunk
         self.cout.write(hellomsg)