Prevent 'running ssh...' in stdout when run with -v

This commit is contained in:
Durham Goode 2013-07-24 13:20:13 -07:00
parent 3cbc732b42
commit 9df6e83354

View File

@ -87,8 +87,17 @@ class fileserverclient(object):
# fetch from the master
if not remote:
remote = sshpeer.sshpeer(self.ui, fallbackrepo)
remote._callstream("getfiles")
verbose = self.ui.verbose
try:
# When verbose is true, sshpeer prints 'running ssh...'
# to stdout, which can interfere with some command
# outputs
self.ui.verbose = False
remote = sshpeer.sshpeer(self.ui, fallbackrepo)
remote._callstream("getfiles")
finally:
self.ui.verbose = verbose
id = missingid[-40:]
file = idmap[missingid]