(Version version)
| 152 | } |
| 153 | |
| 154 | @Override |
| 155 | public final Queries migrateTo(Version version) { |
| 156 | if (equals(version)) |
| 157 | return ctx.queries(); |
| 158 | |
| 159 | VersionImpl subgraph = ((VersionImpl) version).subgraphTo(this); |
| 160 | |
| 161 | if (subgraph == null) |
| 162 | |
| 163 | |
| 164 | |
| 165 | |
| 166 | |
| 167 | throw new DataDefinitionException("No forward path available between versions " + id() + " and " + version.id() + ". Use Settings.migrationAllowsUndo to enable this feature."); |
| 168 | |
| 169 | return migrateTo(subgraph, ctx.queries()); |
| 170 | } |
| 171 | |
| 172 | private final VersionImpl subgraphTo(VersionImpl ancestor) { |
| 173 | List<Parent> list = null; |
nothing calls this directly
no test coverage detected