mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
Prevent 'running ssh...' in stdout when run with -v
This commit is contained in:
parent
3cbc732b42
commit
9df6e83354
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user