# HG changeset patch # User Pierre-Yves David # Date 1677123379 -3600 # 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 -r 6065a8936b00 -r 34db5692d537 hgext/narrow/narrowbundle2.py --- a/hgext/narrow/narrowbundle2.py Thu Feb 23 04:35:16 2023 +0100 +++ b/hgext/narrow/narrowbundle2.py Thu Feb 23 04:36:19 2023 +0100 @@ -261,6 +261,7 @@ # 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()