changeset 27:31906bc290ff

Working directory is draft.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 07 Jul 2011 11:10:05 +0200
parents c9da15600775
children 0918e3b54f0b
files states.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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