equal
deleted
inserted
replaced
56 import sys, os, signal, shlex, errno |
56 import sys, os, signal, shlex, errno |
57 from mercurial import commands, dispatch, util, extensions |
57 from mercurial import commands, dispatch, util, extensions |
58 from mercurial.i18n import _ |
58 from mercurial.i18n import _ |
59 |
59 |
60 def _runpager(p): |
60 def _runpager(p): |
61 if not hasattr(os, 'fork'): |
61 if not util.safehasattr(os, 'fork'): |
62 sys.stdout = util.popen(p, 'wb') |
62 sys.stdout = util.popen(p, 'wb') |
63 if util.isatty(sys.stderr): |
63 if util.isatty(sys.stderr): |
64 sys.stderr = sys.stdout |
64 sys.stderr = sys.stdout |
65 return |
65 return |
66 fdin, fdout = os.pipe() |
66 fdin, fdout = os.pipe() |