hgext/narrow/narrowbundle2.py
changeset 45106 a03c177a4679
parent 43506 9f70512ae2cf
child 45371 e58e234096de
--- a/hgext/narrow/narrowbundle2.py	Tue Jul 14 11:28:06 2020 -0700
+++ b/hgext/narrow/narrowbundle2.py	Tue Apr 14 16:43:54 2020 +0530
@@ -20,6 +20,7 @@
     localrepo,
     narrowspec,
     repair,
+    scmutil,
     util,
     wireprototypes,
 )
@@ -179,7 +180,7 @@
 
     if not repository.NARROW_REQUIREMENT in op.repo.requirements:
         op.repo.requirements.add(repository.NARROW_REQUIREMENT)
-        op.repo._writerequirements()
+        scmutil.writereporequirements(op.repo)
     op.repo.setnarrowpats(includepats, excludepats)
     narrowspec.copytoworkingcopy(op.repo)
 
@@ -195,7 +196,7 @@
 
     if repository.NARROW_REQUIREMENT not in op.repo.requirements:
         op.repo.requirements.add(repository.NARROW_REQUIREMENT)
-        op.repo._writerequirements()
+        scmutil.writereporequirements(op.repo)
     op.repo.setnarrowpats(includepats, excludepats)
     narrowspec.copytoworkingcopy(op.repo)