hgext/lfs/wrapper.py
changeset 44073 b9e174d4ed11
parent 44072 1a6dd50cd0db
child 45072 a56ba57c837d
--- a/hgext/lfs/wrapper.py	Sun Dec 22 23:50:19 2019 -0500
+++ b/hgext/lfs/wrapper.py	Mon Dec 23 01:12:20 2019 -0500
@@ -236,6 +236,10 @@
         # the revlog.
         if rl.opener.lfslocalblobstore.has(metadata.oid()):
             skipflags &= ~revlog.REVIDX_EXTSTORED
+        elif skipflags & revlog.REVIDX_EXTSTORED:
+            # The wrapped method will set `skipread`, but there's enough local
+            # info to check renames.
+            state[b'safe_renamed'].add(node)
 
     orig(rl, skipflags, state, node)