mercurial/hg.py
changeset 45106 a03c177a4679
parent 44856 b7808443ed6a
child 45372 77b8588dd84e
--- a/mercurial/hg.py	Tue Jul 14 11:28:06 2020 -0700
+++ b/mercurial/hg.py	Tue Apr 14 16:43:54 2020 +0530
@@ -356,7 +356,7 @@
 
             repo.requirements.discard(b'shared')
             repo.requirements.discard(b'relshared')
-            repo._writerequirements()
+            scmutil.writereporequirements(repo)
 
     # Removing share changes some fundamental properties of the repo instance.
     # So we instantiate a new repo object and operate on it rather than