* @return Map mapping a {@link Changeset} to a {@link Phase}
*/
public Map<Changeset, Phase> phases(String... revs) {
GenericLogCommand cmd = new GenericLogCommand(this).template("{node} {phase}\\0");
cmd.rev(revs);
HgInputStream stream = cmd.stream();
Map<Changeset, Phase> result = Maps.newHashMap();
try {
while (!stream.isEof()) {
String node = stream.textUpTo(' ');
String phaseName = stream.textUpTo('\0');
Phase phase = Phase.fromText(phaseName);
result.put(changeset(node), phase);
}
} catch (IOException e) {
throw new RuntimeIOException(e);