@Override public String apply(RevTag revTag) { return revTag.getName(); }};
public static void writeTag(RevTag tag, DataOutput out) throws IOException { out.write(tag.getCommitId().getRawValue()); out.writeUTF(tag.getName()); out.writeUTF(tag.getMessage()); writePerson(tag.getTagger(), out); }
public void writeTag(RevTag tag, DataOutput out) throws IOException { out.write(tag.getCommitId().getRawValue()); out.writeUTF(tag.getName()); out.writeUTF(tag.getMessage()); writePerson(tag.getTagger(), out); }
private int write(@NonNull RevTag t, @NonNull FlatBufferBuilder builder) { return writeTag(builder, t.getName(), t.getCommitId(), t.getMessage(), t.getTagger()); }
public static void writeTag(RevTag tag, DataOutput out) throws IOException { tag.getCommitId().writeTo(out); out.writeUTF(tag.getName()); out.writeUTF(tag.getMessage()); writePerson(tag.getTagger(), out); }
public void writeTag(RevTag tag, DataOutput out) throws IOException { tag.getCommitId().writeTo(out); out.writeUTF(tag.getName()); out.writeUTF(tag.getMessage()); writePerson(tag.getTagger(), out); }
@Override public boolean equals(Object o) { if (!(o instanceof RevTag) && super.equals(o)) { return false; } RevTag t = (RevTag) o; return equal(getName(), t.getName()) && equal(getCommitId(), t.getCommitId()) && equal(getMessage(), t.getMessage()); } }
private void listTags(GeogigCLI cli) { GeoGIG geogig = cli.getGeogig(); ImmutableList<RevTag> tags = geogig.command(TagListOp.class).call(); for (RevTag tag : tags) { try { cli.getConsole().println(tag.getName()); } catch (IOException e) { throw new RuntimeException(e); } } } }
private void listTags(GeogigCLI cli) { GeoGIG geogig = cli.getGeogig(); ImmutableList<RevTag> tags = geogig.command(TagListOp.class).call(); for (RevTag tag : tags) { try { cli.getConsole().println(tag.getName()); } catch (IOException e) { throw Throwables.propagate(e); } } } }
private void listTags(GeogigCLI cli) { GeoGIG geogig = cli.getGeogig(); ImmutableList<RevTag> tags = geogig.command(TagListOp.class).call(); for (RevTag tag : tags) { try { cli.getConsole().println(tag.getName()); } catch (IOException e) { throw new RuntimeException(e); } } } }
w.write(tag.getName()); w.write(" "); w.write(tag.getId().toString());
@Override public void funnel(RevTag from, PrimitiveSink into) { funnel(into, from.getName(), from.getCommitId(), from.getMessage(), from.getTagger()); }
@Override public void funnel(RevTag from, PrimitiveSink into) { funnel(into, from.getName(), from.getCommitId(), from.getMessage(), from.getTagger()); }
&& tags.containsKey(rf.localName())) { RevTag tag = tags.get(rf.localName()); remoteLocalRefs.add(new Ref(Ref.TAGS_PREFIX + tag.getName(), tag.getId()));
@Override protected void print(RevTag tag, Writer w) throws IOException { println(w, "name\t", tag.getName()); println(w, "commitid\t", tag.getCommitId().toString()); println(w, "message\t", tag.getMessage()); print(w, "tagger"); print(w, "\t"); print(w, tag.getTagger().getName().or(" ")); print(w, "\t"); print(w, tag.getTagger().getEmail().or(" ")); print(w, "\t"); print(w, Long.toString(tag.getTagger().getTimestamp())); print(w, "\t"); print(w, Long.toString(tag.getTagger().getTimeZoneOffset())); println(w); w.flush(); }
@Override protected void print(RevTag tag, Writer w) throws IOException { println(w, "name\t", tag.getName()); println(w, "commitid\t", tag.getCommitId().toString()); println(w, "message\t", tag.getMessage()); print(w, "tagger"); print(w, "\t"); print(w, tag.getTagger().getName().or(" ")); print(w, "\t"); print(w, tag.getTagger().getEmail().or(" ")); print(w, "\t"); print(w, Long.toString(tag.getTagger().getTimestamp())); print(w, "\t"); print(w, Long.toString(tag.getTagger().getTimeZoneOffset())); println(w); w.flush(); }
private void writeTagImpl(RevTag revTag, String tag) throws StreamWriterException { writeElement("id", revTag.getId().toString()); writeElement("commitid", revTag.getCommitId().toString()); writeElement("name", revTag.getName()); writeElement("message", revTag.getMessage()); writePerson("tagger", revTag.getTagger()); }
private void assertTag(RevTag tag, RevTag read) { assertEquals(tag, read); assertEquals(tag.getId(), read.getId()); assertEquals(tag.getName(), read.getName()); assertEquals(tag.getMessage(), read.getMessage()); assertEquals(tag.getCommitId(), read.getCommitId()); assertEquals(tag.getTagger(), read.getTagger()); }
public RevTag testCreateTag(ObjectId id, String name, ObjectId commitId, String message, RevPerson tagger) { RevTag actual = factory.createTag(id, name, commitId, message, tagger); assertNotNull(actual); RevTag expected = DEFAULT.createTag(id, name, commitId, message, tagger); assertNotNull(expected); assertEquals(expected.getId(), actual.getId()); assertEquals(expected.getCommitId(), actual.getCommitId()); assertEquals(expected.getName(), actual.getName()); assertEquals(expected.getMessage(), actual.getMessage()); assertEquals(expected.getTagger(), actual.getTagger()); assertEquals(expected, actual); return actual; }