}
List<Bookmark> result = Lists.newArrayList();
while (stream.peek() != -1) {
stream.mustMatch(' ');
boolean active = stream.read() == '*';
stream.mustMatch(' ');
String name = stream.textUpTo(':');
name = name.substring(0, name.lastIndexOf(' ')).trim();
String node = stream.textUpTo('\n');
Bookmark bookmark = new Bookmark(repo.changeset(node), name, active);
result.add(bookmark);