HgInputStream stream = launchStream();
try {
while (!stream.isEof()) {
String node = stream.textUpTo(' ');
String phaseName = stream.textUpTo(0);
Phase phase = Phase.fromText(phaseName);
result.put(repo.changeset(node), phase);
}
} catch (IOException e) {
throw new RuntimeIOException(e);
}