Skip to content
Snippets Groups Projects
Commit 88ff28bc authored by Na'Tosha Bard's avatar Na'Tosha Bard
Browse files

largefiles: optimize status by synchronizing lfdirstate with the largefile on update

This speeds up status on a largefiles repo by synchronizing the largefiles dirstate to the
largefile's mtime upon update, preventing the files from coming back as "unsure" later,
requiring a check of the SHA1 sum.
parent d592759a
No related branches found
No related tags found
No related merge requests found
......@@ -483,6 +483,10 @@
# recognition that such cache missing files are REMOVED.
lfdirstate.normallookup(lfile)
return None # don't try to set the mode
else:
# Synchronize largefile dirstate to the last modified time of
# the file
lfdirstate.normal(lfile)
ret = 1
mode = os.stat(absstandin).st_mode
if mode != os.stat(abslfile).st_mode:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment