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