# HG changeset patch # User Idan Kamara # Date 2011-06-08 11:54:52 # Node ID b98063487a6f11feb170586888ef800b6c194cb1 # Parent 217b7d83afc3796813b7bb1ebbbec7bab1206d0e mq: use ui.fin when importing patch from '-' diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -48,7 +48,7 @@ from mercurial.lock import release from mercurial import commands, cmdutil, hg, scmutil, util, revset from mercurial import repair, extensions, url, error from mercurial import patch as patchmod -import os, sys, re, errno, shutil +import os, re, errno, shutil commands.norepo += " qclone" @@ -1831,7 +1831,7 @@ class queue(object): 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()