diff hgext/largefiles/lfcommands.py @ 23696:1265a3a71d75 stable 3.2.4

largefiles: backout f72d73937853 - linear updates handle m -> a differently f72d73937853 introduced a significant performance regression: All largefiles were marked 'normallookup' by linear (or noop) updates and had to be rehashed by the next command. The previous change introduced a different solution to the problem f72d73937853 solved and we can thus back it out again.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 31 Dec 2014 14:46:03 +0100
parents 650b5b6e75ed
children 3314664606e6
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py	Wed Dec 31 14:46:02 2014 +0100
+++ b/hgext/largefiles/lfcommands.py	Wed Dec 31 14:46:03 2014 +0100
@@ -513,19 +513,6 @@
 
             lfutil.synclfdirstate(repo, lfdirstate, lfile, normallookup)
 
-        if filelist is not None:
-            # If "local largefile" is chosen at file merging, it is
-            # not listed in "filelist" (= dirstate syncing is
-            # omitted), because the standin file is not changed before and
-            # after merging.
-            # But the status of such files may have to be changed by
-            # merging. For example, locally modified ("M") largefile
-            # has to become re-added("A"), if it is "normal" file in
-            # the target revision of linear-merging.
-            for lfile in lfdirstate:
-                if lfile not in filelist:
-                    lfutil.synclfdirstate(repo, lfdirstate, lfile, True)
-
         lfdirstate.write()
         if printmessage and lfiles:
             ui.status(_('%d largefiles updated, %d removed\n') % (updated,