# HG changeset patch # User Pierre-Yves David # Date 2023-02-23 03:36:19 # Node ID 34db5692d5376c051b5acd8399a411384392ab60 # Parent 6065a8936b00c8a276a2be2ae80220b4e2aa23c3 narrow: open the transaction sooner when unbundling That way, the narrow spec changes will be done within a transaction. diff --git a/hgext/narrow/narrowbundle2.py b/hgext/narrow/narrowbundle2.py --- a/hgext/narrow/narrowbundle2.py +++ b/hgext/narrow/narrowbundle2.py @@ -261,6 +261,7 @@ def _handlechangespec(op, inpart): # other servers may include a changespec part even when not widening (e.g. # because we're deepening a shallow repo). if util.safehasattr(repo, 'setnewnarrowpats'): + op.gettransaction() repo.setnewnarrowpats()