Mercurial > hg-stable
changeset 42292:65f3a77223e0
remotefilelog: log when we're about to fetch files
I'm debugging a slow client situation and knowing how many files are
in the batch request would be a nice thing.
Differential Revision: https://phab.mercurial-scm.org/D6353
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 08 May 2019 18:11:33 -0400 |
parents | 6bc1245cd598 |
children | b3fc78c028ef |
files | hgext/remotefilelog/fileserverclient.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/remotefilelog/fileserverclient.py Tue Apr 30 15:15:57 2019 +0900 +++ b/hgext/remotefilelog/fileserverclient.py Wed May 08 18:11:33 2019 -0400 @@ -396,6 +396,9 @@ batchdefault = 10 batchsize = self.ui.configint( 'remotefilelog', 'batchsize', batchdefault) + self.ui.debug( + b'requesting %d files from ' + b'remotefilelog server...\n' % len(missed)) _getfilesbatch( remote, self.receivemissing, progress.increment, missed, idmap, batchsize)