}
public void newCommitNode(Nodeid newChangeset, HgPhase newCommitPhase) throws HgRuntimeException {
final int riCset = repo.getRepo().getChangelog().getRevisionIndex(newChangeset);
HgPhase ph = getPhase(riCset, newChangeset);
if (ph.compareTo(newCommitPhase) >= 0) {
// present phase is more secret than the desired one
return;
}
// newCommitPhase can't be public here, condition above would be satisfied
assert newCommitPhase != HgPhase.Public;