in java/com/google/gitiles/GitilesView.java [190:210]
public Builder setRevision(Revision revision) {
switch (type) {
case HOST_INDEX:
case REPOSITORY_INDEX:
case REFS:
case DESCRIBE:
throw new IllegalStateException(String.format("cannot set revision on %s view", type));
case ARCHIVE:
case BLAME:
case DIFF:
case DOC:
case LOG:
case PATH:
case REVISION:
case ROOTED_DOC:
case SHOW:
default:
this.revision = checkNotNull(revision);
return this;
}
}