comparison 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
comparison
equal deleted inserted replaced
28026:a6db1163befa 28027:14033c5dd261
260 def serve(self): 260 def serve(self):
261 hellomsg = 'capabilities: ' + ' '.join(sorted(self.capabilities)) 261 hellomsg = 'capabilities: ' + ' '.join(sorted(self.capabilities))
262 hellomsg += '\n' 262 hellomsg += '\n'
263 hellomsg += 'encoding: ' + encoding.encoding 263 hellomsg += 'encoding: ' + encoding.encoding
264 hellomsg += '\n' 264 hellomsg += '\n'
265 hellomsg += 'pid: %d' % os.getpid() 265 hellomsg += 'pid: %d' % util.getpid()
266 266
267 # write the hello msg in -one- chunk 267 # write the hello msg in -one- chunk
268 self.cout.write(hellomsg) 268 self.cout.write(hellomsg)
269 269
270 try: 270 try: