use of com.intellij.openapi.vcs.changes.TextRevisionNumber in project intellij-community by JetBrains.
the class ShelvedBinaryFile method createChange.
public Change createChange(final Project project) {
ContentRevision before = null;
ContentRevision after = null;
final File baseDir = new File(project.getBaseDir().getPath());
if (BEFORE_PATH != null) {
final FilePath file = VcsUtil.getFilePath(new File(baseDir, BEFORE_PATH), false);
before = new CurrentBinaryContentRevision(file) {
@NotNull
@Override
public VcsRevisionNumber getRevisionNumber() {
return new TextRevisionNumber(VcsBundle.message("local.version.title"));
}
};
}
if (AFTER_PATH != null) {
final FilePath file = VcsUtil.getFilePath(new File(baseDir, AFTER_PATH), false);
after = new ShelvedBinaryContentRevision(file, SHELVED_PATH);
}
return new Change(before, after);
}
Aggregations