if (l.getType() == Kind.Hg) {
HgRepository r = l.getRepo();
System.out.printf("%s (%s) has %d revisions\n", l.getLocation(), r.getLocation(), r.getChangelog().getLastRevision() + 1);
if (r.getChangelog().getLastRevision() >= 0) {
final RawChangeset c = r.getChangelog().range(TIP, TIP).get(0);
System.out.printf("TIP: %s %s '%s'\n", c.user(), c.dateString(), c.comment());
}
}
}
}