Mercurial > hg
comparison hgext/largefiles/overrides.py @ 45297:ab57793dec5b
largefiles: override merge.emptyactions() to include `lfmr`
I found it weird that we were not already doing this. I encountered this while
using `emptyactions()` in mergeresult() class.
Differential Revision: https://phab.mercurial-scm.org/D8835
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sat, 25 Jul 2020 14:41:20 +0530 |
parents | b442920ab1de |
children | a3cd63d6005b |
comparison
equal
deleted
inserted
replaced
45296:cb0cd87e16b4 | 45297:ab57793dec5b |
---|---|
491 dirstate = lfutil.openlfdirstate(ui, repo) | 491 dirstate = lfutil.openlfdirstate(ui, repo) |
492 | 492 |
493 orig(ui, fakerepo, *pats, **opts) | 493 orig(ui, fakerepo, *pats, **opts) |
494 else: | 494 else: |
495 orig(ui, repo, *pats, **opts) | 495 orig(ui, repo, *pats, **opts) |
496 | |
497 | |
498 # Register the `lfmr` merge action in emptyactions() return type | |
499 @eh.wrapfunction(merge, b'emptyactions') | |
500 def overrideemptyactions(origfn): | |
501 ret = origfn() | |
502 ret[b'lfmr'] = [] | |
503 return ret | |
496 | 504 |
497 | 505 |
498 # Before starting the manifest merge, merge.updates will call | 506 # Before starting the manifest merge, merge.updates will call |
499 # _checkunknownfile to check if there are any files in the merged-in | 507 # _checkunknownfile to check if there are any files in the merged-in |
500 # changeset that collide with unknown files in the working copy. | 508 # changeset that collide with unknown files in the working copy. |