equal
deleted
inserted
replaced
894 def setstate(self, state, nodes): |
894 def setstate(self, state, nodes): |
895 """change state of targets changeset and it's ancestors. |
895 """change state of targets changeset and it's ancestors. |
896 |
896 |
897 Simplify the list of head.""" |
897 Simplify the list of head.""" |
898 assert not isinstance(nodes, basestring), repr(nodes) |
898 assert not isinstance(nodes, basestring), repr(nodes) |
|
899 if not state.trackheads: |
|
900 return |
899 heads = self._statesheads[state] |
901 heads = self._statesheads[state] |
900 olds = heads[:] |
902 olds = heads[:] |
901 heads.extend(nodes) |
903 heads.extend(nodes) |
902 heads[:] = set(heads) |
904 heads[:] = set(heads) |
903 heads.sort() |
905 heads.sort() |