diff hgext/largefiles/overrides.py @ 45348:490607efc992

merge: remove emptyactions() and use collections.defaultdict(list) instead emptyactions() used to return a dict which was populated and passed into applyupdates(). However, with recent changes, we no longer pass a plain dict, instead we pass the mergeresult object. There was only one usage of emptyactions and that too inside mergeresult object. That usage is replaced with collections.defaultdict(list) instead. Not sure why we were not using collections.defaultdict(list) from the beginning. Differential Revision: https://phab.mercurial-scm.org/D8903
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 06 Aug 2020 13:27:38 +0530
parents e5b4061f32be
children 8c466bcb0879
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Wed Aug 05 16:52:51 2020 +0530
+++ b/hgext/largefiles/overrides.py	Thu Aug 06 13:27:38 2020 +0530
@@ -497,14 +497,6 @@
         orig(ui, repo, *pats, **opts)
 
 
-# Register the MERGE_ACTION_LARGEFILE_MARK_REMOVED in emptyactions() return type
-@eh.wrapfunction(merge, b'emptyactions')
-def overrideemptyactions(origfn):
-    ret = origfn()
-    ret[MERGE_ACTION_LARGEFILE_MARK_REMOVED] = []
-    return ret
-
-
 # Before starting the manifest merge, merge.updates will call
 # _checkunknownfile to check if there are any files in the merged-in
 # changeset that collide with unknown files in the working copy.