Working directory is draft.
diff --git a/states.py b/states.py --- a/states.py +++ b/states.py @@ -106,6 +106,8 @@ def noderange(repo, revsets): ############################# def state(ctx): + if ctx.node()is None: + return STATES[-1] return ctx._repo.nodestate(ctx.node()) context.changectx.state = state