diff 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
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"""