[PATCH 2 of 4] dispatch: add I/O descriptors to the request
Idan Kamara
idankk86 at gmail.com
Mon Jun 13 17:09:10 CDT 2011
# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1307443149 -10800
# Node ID 19c5caf7497ec509ae1356a28063d5e5aad21c09
# Parent 0776f4bffe94717c4f517bd6f00e77b95f82950f
dispatch: add I/O descriptors to the request
diff -r 0776f4bffe94 -r 19c5caf7497e mercurial/dispatch.py
--- a/mercurial/dispatch.py Tue Jun 07 13:39:09 2011 +0300
+++ b/mercurial/dispatch.py Tue Jun 07 13:39:09 2011 +0300
@@ -12,11 +12,16 @@
import ui as uimod
class request(object):
- def __init__(self, args, ui=None, repo=None):
+ def __init__(self, args, ui=None, repo=None, fin=None, fout=None, ferr=None):
self.args = args
self.ui = ui
self.repo = repo
+ # input/output/error streams
+ self.fin = fin
+ self.fout = fout
+ self.ferr = ferr
+
def run():
"run the command in sys.argv"
sys.exit(dispatch(request(sys.argv[1:])))
More information about the Mercurial-devel
mailing list