Commits

Pierre-Yves David committed 0918e3b

published is always enabled.

Comments (0)

Files changed (2)

 
         def _readenabledstates(self):
             states = set()
+            states.add(ST0)
             mapping = dict([(st.name, st) for st in STATES])
             try:
                 f = self.opener('states/Enabled')

tests/test-states.t

   $ hg init other
   $ cd local
   $ hg states --traceback -v
+  published
   $ hg states draft
   $ hg states
+  published
   draft
   $ hg states ready
   $ hg states
+  published
   ready
   draft
   $ hg states --off draft
   $ hg states
+  published
   ready
   $ hg states babar
   no state named babar
   [1]
   $ echo 'babar' >> .hg/states/Enabled
   $ hg states
+  published
   ready
   $ hg -R ../other states
+  published