Working directory is draft.
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 07 Jul 2011 11:10:05 +0200
changeset 27 31906bc290ff
parent 26 c9da15600775
child 28 0918e3b54f0b
Working directory is draft.
states.py
--- a/states.py	Fri Jul 01 17:20:45 2011 +0200
+++ b/states.py	Thu Jul 07 11:10:05 2011 +0200
@@ -106,6 +106,8 @@
 #############################
 
 def state(ctx):
+    if ctx.node()is None:
+        return STATES[-1]
     return ctx._repo.nodestate(ctx.node())
 context.changectx.state = state