[PATCH 02 of 12 RFC v2] mq: use ui.fin when importing patch from '-'
Idan Kamara
idankk86 at gmail.com
Wed Jun 15 21:09:14 UTC 2011
# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1307534092 -10800
# Node ID af4395dd73261b6377e7fb8d470d19adccc7e0f2
# Parent 797ed5c8a247cefa19e32778cfb5faeaac62bfdd
mq: use ui.fin when importing patch from '-'
diff -r 797ed5c8a247 -r af4395dd7326 hgext/mq.py
--- a/hgext/mq.py Wed Jun 08 14:54:52 2011 +0300
+++ b/hgext/mq.py Wed Jun 08 14:54:52 2011 +0300
@@ -1831,7 +1831,7 @@
self.checkpatchname(patchname, force)
try:
if filename == '-':
- text = sys.stdin.read()
+ text = self.ui.fin.read()
else:
fp = url.open(self.ui, filename)
text = fp.read()
More information about the Mercurial-devel
mailing list