changeset 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 2673006f7989
children d523b6e7ad26
files mercurial/phases.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/phases.py	Wed Jan 04 01:12:31 2012 +0100
+++ b/mercurial/phases.py	Wed Jan 04 01:02:16 2012 +0100
@@ -104,6 +104,7 @@
 
 allphases = public, draft, secret = range(3)
 trackedphases = allphases[1:]
+phasenames = ['public', 'draft', 'secret']
 
 def readroots(repo):
     """Read phase roots from disk"""