changeset 50190:34db5692d537

narrow: open the transaction sooner when unbundling That way, the narrow spec changes will be done within a transaction.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 23 Feb 2023 04:36:19 +0100
parents 6065a8936b00
children 99faa396e186
files hgext/narrow/narrowbundle2.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()