RevisionApi: Add method to get revision ETag

Change-Id: I266c16b05745bfb31d19a14814e1a1d6906400f2
This commit is contained in:
David Pursehouse
2016-11-17 13:55:57 -08:00
parent ca13de796d
commit c67dcbca4f
4 changed files with 31 additions and 16 deletions

View File

@@ -899,6 +899,13 @@ public abstract class AbstractDaemonTest {
.actions();
}
protected String getETag(String id) throws Exception {
return gApi.changes()
.id(id)
.current()
.etag();
}
private static Iterable<String> changeIds(Iterable<ChangeInfo> changes) {
return Iterables.transform(changes, i -> i.changeId);
}