Patchwork D6353: remotefilelog: log when we're about to fetch files

login
register
mail settings
Submitter phabricator
Date May 8, 2019, 10:21 p.m.
Message ID <differential-rev-PHID-DREV-s2whqr5xe5roz67qs6kn-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/39987/
State Superseded
Headers show

Comments

phabricator - May 8, 2019, 10:21 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  I'm debugging a slow client situation and knowing how many files are
  in the batch request would be a nice thing.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6353

AFFECTED FILES
  hgext/remotefilelog/fileserverclient.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/remotefilelog/fileserverclient.py b/hgext/remotefilelog/fileserverclient.py
--- a/hgext/remotefilelog/fileserverclient.py
+++ b/hgext/remotefilelog/fileserverclient.py
@@ -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)