use of com.intellij.openapi.vcs.history.VcsRevisionNumber in project intellij-community by JetBrains.
the class CvsChangeProvider method processFile.
private void processFile(final FilePath filePath, final ChangelistBuilder builder, final ProgressIndicator progress) throws VcsException {
final VirtualFile dir = filePath.getVirtualFileParent();
if (dir == null)
return;
final Entry entry = myEntriesManager.getEntryFor(dir, filePath.getName());
final FileStatus status = CvsStatusProvider.getStatus(filePath.getVirtualFile(), entry);
final VcsRevisionNumber number = entry != null ? createRevisionNumber(entry.getRevision(), status) : VcsRevisionNumber.NULL;
processStatus(filePath, dir.findChild(filePath.getName()), status, number, builder);
progress.checkCanceled();
checkSwitchedFile(filePath, builder, dir, entry);
}
use of com.intellij.openapi.vcs.history.VcsRevisionNumber in project intellij-community by JetBrains.
the class FileGroup method getFilesAndRevisions.
public List<Pair<String, VcsRevisionNumber>> getFilesAndRevisions(ProjectLevelVcsManager vcsManager) {
ArrayList<Pair<String, VcsRevisionNumber>> files = new ArrayList<>();
for (UpdatedFile file : myFiles) {
VcsRevisionNumber number = getRevision(vcsManager, file);
files.add(Pair.create(file.getPath(), number));
}
return files;
}
use of com.intellij.openapi.vcs.history.VcsRevisionNumber in project intellij-community by JetBrains.
the class MergeUtil method putRevisionInfo.
private static void putRevisionInfo(@NotNull List<? extends DiffContent> contents, @NotNull MergeData data) {
for (ThreeSide side : ThreeSide.values()) {
DiffContent content = side.select(contents);
FilePath filePath = side.select(data.CURRENT_FILE_PATH, data.ORIGINAL_FILE_PATH, data.LAST_FILE_PATH);
VcsRevisionNumber revision = side.select(data.CURRENT_REVISION_NUMBER, data.ORIGINAL_REVISION_NUMBER, data.LAST_REVISION_NUMBER);
if (filePath != null && revision != null) {
content.putUserData(DiffUserDataKeysEx.REVISION_INFO, Pair.create(filePath, revision));
}
}
}
use of com.intellij.openapi.vcs.history.VcsRevisionNumber in project intellij-community by JetBrains.
the class GitNewChangesCollector method parseOutput.
/**
* Parses the output of the 'git status --porcelain -z' command filling myChanges and myUnversionedFiles.
* See <a href=http://www.kernel.org/pub/software/scm/git/docs/git-status.html#_output">Git man</a> for details.
*/
// handler is here for debugging purposes in the case of parse error
private void parseOutput(@NotNull String output, @NotNull GitHandler handler) throws VcsException {
VcsRevisionNumber head = getHead();
final String[] split = output.split("