merge: extract helper for creating empty "actions" dict

Authored by martinvonz.

Description

merge: extract helper for creating empty "actions" dict

Replicating the set of actions in multiple places is bad.

Differential Revision: https://phab.mercurial-scm.org/D5472