D7966: remotefilelog: only prefetch history in linkrevfixup

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Jan 21 21:59:09 UTC 2020


pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The linknode is part of the history, not the data, no need to force prefetch
  the blobs.
  
  The commit is copied from
  https://github.com/facebookexperimental/eden/commit/03b66077798c33d7acc2d39ce6496d919bd7d11c

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  hgext/remotefilelog/remotefilectx.py

CHANGE DETAILS

diff --git a/hgext/remotefilelog/remotefilectx.py b/hgext/remotefilelog/remotefilectx.py
--- a/hgext/remotefilelog/remotefilectx.py
+++ b/hgext/remotefilelog/remotefilectx.py
@@ -325,7 +325,9 @@
         logmsg = b''
         start = time.time()
         try:
-            repo.fileservice.prefetch([(path, hex(fnode))], force=True)
+            repo.fileservice.prefetch(
+                [(path, hex(fnode))], force=True, fetchdata=False
+            )
 
             # Now that we've downloaded a new blob from the server,
             # we need to rebuild the ancestor map to recompute the



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


More information about the Mercurial-devel mailing list