remotefilelog: log when we're about to fetch files
authorAugie Fackler <augie@google.com>
Wed, 08 May 2019 18:11:33 -0400
changeset 42265 65f3a77223e0
parent 42264 6bc1245cd598
child 42266 b3fc78c028ef
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
hgext/remotefilelog/fileserverclient.py
--- 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)