phases: add list of string to access phase name
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 04 Jan 2012 01:02:16 +0100
changeset 15821 e3ee8bf5d0cc
parent 15820 2673006f7989
child 15822 d523b6e7ad26
phases: add list of string to access phase name
mercurial/phases.py
--- 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"""