comparison mercurial/phases.py @ 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 98f97026fa05
children e2d17974a869
comparison
equal deleted inserted replaced
45062:72feaeb510b3 45063:6232d732658c
884 raise error.ConfigError(msg % v) 884 raise error.ConfigError(msg % v)
885 885
886 886
887 def hassecret(repo): 887 def hassecret(repo):
888 """utility function that check if a repo have any secret changeset.""" 888 """utility function that check if a repo have any secret changeset."""
889 return bool(repo._phasecache.phaseroots[2]) 889 return bool(repo._phasecache.phaseroots[secret])
890 890
891 891
892 def preparehookargs(node, old, new): 892 def preparehookargs(node, old, new):
893 if old is None: 893 if old is None:
894 old = b'' 894 old = b''