private static boolean isLocal(@Nullable Revision revision) {
    return revision == null ||
           Revision.UNDEFINED.equals(revision) ||
           Revision.BASE.equals(revision) ||
           Revision.WORKING.equals(revision);
  }
private static boolean isLocal(@Nullable Revision revision)