return;
}
Codebase to, from;
try {
Expression toEx =
new RepositoryExpression(toRev.repositoryName).atRevision(toRev.revId);
Expression fromEx =
new RepositoryExpression(fromRev.repositoryName).atRevision(fromRev.revId);
// Use the forward-translator to check an inverse-translated migration.
if (inverse) {
String fromProjectSpace =
context.config.getRepositoryConfigs().get(fromRev.repositoryName).getProjectSpace();
toEx = toEx.translateTo(fromProjectSpace);
} else {
String toProjectSpace =
context.config.getRepositoryConfigs().get(toRev.repositoryName).getProjectSpace();
fromEx = fromEx.translateTo(toProjectSpace);
}
to = toEx.createCodebase(context);
from = fromEx.createCodebase(context);
} catch (CodebaseCreationError e) {
AppContext.RUN.ui.error(e, "Could not generate codebase");
return;
} catch (InvalidProject e) {