mercurial/phases.py
changeset 45064 6232d732658c
parent 45013 98f97026fa05
child 45114 e2d17974a869
--- a/mercurial/phases.py	Mon Jun 22 00:00:07 2020 +0200
+++ b/mercurial/phases.py	Tue Jul 07 21:57:46 2020 +0200
@@ -886,7 +886,7 @@
 
 def hassecret(repo):
     """utility function that check if a repo have any secret changeset."""
-    return bool(repo._phasecache.phaseroots[2])
+    return bool(repo._phasecache.phaseroots[secret])
 
 
 def preparehookargs(node, old, new):