diff mercurial/util.py @ 25420:c2ec81891502

util: add a simple poll utility We'll use it to detect when a sshpeer have server output to be displayed. The implementation is super basic because all case support is not the focus of this series.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 20 May 2015 18:00:05 -0500
parents be930f16a52a
children 328739ea70c3
line wrap: on
line diff
--- a/mercurial/util.py	Wed Jun 03 14:22:21 2015 -0700
+++ b/mercurial/util.py	Wed May 20 18:00:05 2015 -0500
@@ -54,6 +54,7 @@
 oslink = platform.oslink
 parsepatchoutput = platform.parsepatchoutput
 pconvert = platform.pconvert
+poll = platform.poll
 popen = platform.popen
 posixfile = platform.posixfile
 quotecommand = platform.quotecommand