Allow setstate with the last non trcked state.
diff --git a/hgext/states.py b/hgext/states.py --- a/hgext/states.py +++ b/hgext/states.py @@ -896,6 +896,8 @@ def reposetup(ui, repo): Simplify the list of head.""" assert not isinstance(nodes, basestring), repr(nodes) + if not state.trackheads: + return heads = self._statesheads[state] olds = heads[:] heads.extend(nodes)