RevisionApi: Add method to get revision ETag
Change-Id: I266c16b05745bfb31d19a14814e1a1d6906400f2
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user