changeset 45063:6232d732658c

phases: replace magic number by constant Differential Revision: https://phab.mercurial-scm.org/D8695
author Joerg Sonnenberger <joerg@bec.de>
date Tue, 07 Jul 2020 21:57:46 +0200
parents 72feaeb510b3
children 41b32cbc53f8
files mercurial/phases.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):