# HG changeset patch # User Martin von Zweigbergk # Date 2020-01-15 23:07:43 # Node ID ff22c76825b90af6b47071060d9e309edab579ab # Parent 50e7ce1f96d1a10e462e02f7db5d7f8d93fc00df merge: don't call update hook when using in-memory context I'm pretty sure many hook implementors will assume that they can inspect the working copy and/or dirstate parents when the hook is called, so I don't think we should call the hook when using an in-memory context. The new behavior matches that of the preupdate hook. Differential Revision: https://phab.mercurial-scm.org/D7898 diff --git a/mercurial/merge.py b/mercurial/merge.py --- a/mercurial/merge.py +++ b/mercurial/merge.py @@ -2574,7 +2574,7 @@ def update( if not branchmerge: sparse.prunetemporaryincludes(repo) - if not partial: + if updatedirstate: repo.hook( b'update', parent1=xp1, parent2=xp2, error=stats.unresolvedcount )