diff --git a/hgext3rd/fbsparse.py b/hgext3rd/fbsparse.py --- a/hgext3rd/fbsparse.py +++ b/hgext3rd/fbsparse.py @@ -79,7 +79,7 @@ actions, diverge, renamedelete = orig(repo, wctx, mctx, ancestors, branchmerge, *arg, **kwargs) - if not util.safehasattr(repo, 'sparsematch'): + if not util.safehasattr(repo, 'sparsematch') or wctx.isinmemory(): return actions, diverge, renamedelete files = set() diff --git a/hgext3rd/sparse.py b/hgext3rd/sparse.py --- a/hgext3rd/sparse.py +++ b/hgext3rd/sparse.py @@ -92,7 +92,7 @@ actions, diverge, renamedelete = orig(repo, wctx, mctx, ancestors, branchmerge, *arg, **kwargs) - if not util.safehasattr(repo, 'sparsematch'): + if not util.safehasattr(repo, 'sparsematch') or wctx.isinmemory(): return actions, diverge, renamedelete files = set()