# HG changeset patch # User Na'Tosha Bard # Date 1342183756 -7200 # Node ID 88ff28bcd98014170909101adc410a8447704fd0 # Parent d592759aabc7f1675a6c9c7b287219f8265ced10 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. diff -r d592759aabc7 -r 88ff28bcd980 hgext/largefiles/lfcommands.py --- a/hgext/largefiles/lfcommands.py Mon Jun 25 15:14:06 2012 -0700 +++ b/hgext/largefiles/lfcommands.py Fri Jul 13 14:49:16 2012 +0200 @@ -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: