Mercurial > hg
diff hgext/remotefilelog/connectionpool.py @ 46662:db8037e38085
sshpeer: add a develwarning if an sshpeer is not closed explicitly
The warning is disabled until the next commit, because fixing it
results in a noisy diff due to indentation changes.
Differential Revision: https://phab.mercurial-scm.org/D9998
author | Valentin Gatien-Baron <valentin.gatienbaron@gmail.com> |
---|---|
date | Mon, 15 Feb 2021 14:40:17 -0500 |
parents | 0509cee38757 |
children | c7f6c3027af2 |
line wrap: on
line diff
--- a/hgext/remotefilelog/connectionpool.py Mon Feb 15 14:15:02 2021 -0500 +++ b/hgext/remotefilelog/connectionpool.py Mon Feb 15 14:40:17 2021 -0500 @@ -47,7 +47,7 @@ if util.safehasattr(peer, '_cleanup'): class mypeer(peer.__class__): - def _cleanup(self): + def _cleanup(self, warn=None): # close pipee first so peer.cleanup reading it won't # deadlock, if there are other processes with pipeo # open (i.e. us).