comparison mercurial/phases.py @ 15821:e3ee8bf5d0cc

phases: add list of string to access phase name
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Wed, 04 Jan 2012 01:02:16 +0100
parents 57241845a4bb
children 592b3d1742a1
comparison
equal deleted inserted replaced
15820:2673006f7989 15821:e3ee8bf5d0cc
102 from node import nullid, bin, hex, short 102 from node import nullid, bin, hex, short
103 from i18n import _ 103 from i18n import _
104 104
105 allphases = public, draft, secret = range(3) 105 allphases = public, draft, secret = range(3)
106 trackedphases = allphases[1:] 106 trackedphases = allphases[1:]
107 phasenames = ['public', 'draft', 'secret']
107 108
108 def readroots(repo): 109 def readroots(repo):
109 """Read phase roots from disk""" 110 """Read phase roots from disk"""
110 roots = [set() for i in allphases] 111 roots = [set() for i in allphases]
111 roots[0].add(nullid) 112 roots[0].add(nullid)