Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
68,000 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
68,001 | void (@NotNull AnActionEvent e) { Project project = e.getRequiredData(CommonDataKeys.PROJECT); SvnVcs vcs = SvnVcs.getInstance(project); VirtualFile[] roots = ProjectLevelVcsManager.getInstance(project).getRootsUnderVcs(vcs); new CleanupWorker(vcs, List.of(roots), message("progress.title.cleanup.project")).execute(); } | actionPerformed |
68,002 | void (@NotNull AnActionEvent e) { Project project = e.getProject(); e.getPresentation() .setEnabledAndVisible(project != null && ProjectLevelVcsManager.getInstance(project).checkVcsIsActive(SvnVcs.VCS_NAME)); } | update |
68,003 | boolean (final VirtualFile file) { if (!myProject.isDefault()) { if (isIgnoredByVcs(file) || myClManager.isIgnoredFile(file)) { return false; } } return true; } | accept |
68,004 | boolean (final VirtualFile file) { return ReadAction.compute(() -> myVcsManager.isIgnored(file)); } | isIgnoredByVcs |
68,005 | boolean (@NotNull VirtualFile file) { try { return operation(file); } catch (VcsException e) { throw new VisitorException(e); } } | visitFile |
68,006 | void (@NotNull Project project, @NotNull Runnable action) { ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager.getInstance(project); vcsManager.startBackgroundVcsOperation(); try { action.run(); } finally { if (getApplication().isDispatchThread()) { getApplication().executeOnPooledThread(() -> vcsManager.stopBa... | run |
68,007 | ActionUpdateThread () { return ActionUpdateThread.BGT; } | getActionUpdateThread |
68,008 | void (@NotNull AnActionEvent e) { Project project = e.getData(CommonDataKeys.PROJECT); e.getPresentation().setEnabled( project == null || TrustedProjects.isTrusted(project) && !ProjectLevelVcsManager.getInstance(project).isBackgroundVcsOperationRunning() ); } | update |
68,009 | void (@NotNull AnActionEvent e) { Project project = e.getData(CommonDataKeys.PROJECT); if (project == null) { project = ProjectManager.getInstance().getDefaultProject(); } ImportDialog dialog = new ImportDialog(project); dialog.show(); } | actionPerformed |
68,010 | String () { return SvnVcs.VCS_NAME; } | getVcsName |
68,011 | List<AnAction> (@NotNull ActionManager manager) { final List<AnAction> actions = new ArrayList<>(); add("ChangesView.Move", manager, actions); add("Subversion.Copy", manager, actions); add("Subversion.Clenaup", manager, actions); return actions; } | collectVcsSpecificActions |
68,012 | char () { return myCode; } | getCode |
68,013 | String () { return myName; } | toString |
68,014 | void (@NotNull StatusType action) { if (action.name().startsWith(STATUS_PREFIX)) { ourStatusTypesForStatusOperation.put(action.myName, action); } } | register |
68,015 | StatusType (@NotNull String statusName) { return ourStatusTypesForStatusOperation.get(statusName); } | forStatusOperation |
68,016 | ProgressEvent (@NotNull Matcher matcher) { String statusMessage = matcher.group(1); String path = matcher.group(2); return createEvent(new File(path), createAction(statusMessage)); } | convert |
68,017 | EventAction (@NotNull String code) { EventAction result = null; if (UPGRADED_CODE.equals(code)) { result = EventAction.UPGRADED_PATH; } return result; } | createAction |
68,018 | void (String line, Key outputType) { if (ProcessOutputTypes.STDOUT.equals(outputType)) { try { parser.onLine(line); } catch (VcsException e) { exception.set(e); } } } | onLineAvailable |
68,019 | MergeInfoCached () { return myCachedMap.get(getCacheKey()); } | getCurrentCache |
68,020 | boolean (boolean ignoreEnabled) { return (ignoreEnabled || myMainPanel.isHighlightingOn() && myPanel.isEnabled()) && myPanel.getBranch() != null && myPanel.getLocalBranch() != null; } | isEnabledAndConfigured |
68,021 | boolean (boolean ignoreEnabled) { return isEnabledAndConfigured(ignoreEnabled) && getCurrentCache() == null; } | refreshEnabled |
68,022 | ListMergeStatus (final boolean ignoreEnabled) { final CommittedChangeListsListener refresher = createRefresher(ignoreEnabled); if (refresher != null) { myManager.reportLoadedLists(refresher); } myManager.repaintTree(); return ListMergeStatus.REFRESHING; } | refresh |
68,023 | CommittedChangeListsListener (boolean ignoreEnabled) { CommittedChangeListsListener result = null; if (refreshEnabled(ignoreEnabled)) { // on awt thread final MergeInfoCached state = myMergeInfoCache.getCachedState(myPanel.getWcInfo(), myPanel.getLocalBranch()); myCachedMap.put(getCacheKey(), state != null ? state.copy... | createRefresher |
68,024 | void () { } | onBeforeStartReport |
68,025 | boolean (@NotNull CommittedChangeList list) { if (list instanceof SvnChangeList) { final MergeCheckResult checkState = myMergeInfoCache.getState(myRefreshedRoot, (SvnChangeList)list, myRefreshedBranch, myBranchPath); // todo make batches - by 10 final long number = list.getNumber(); ApplicationManager.getApplication().... | report |
68,026 | void () { ApplicationManager.getApplication().invokeLater(() -> { myCachedMap.remove(getCacheKey()); updateMixedRevisionsForPanel(); myManager.repaintTree(); }); } | onAfterEndReport |
68,027 | ListMergeStatus (final CommittedChangeList list, final boolean ignoreEnabled) { ListMergeStatus result; if (!isEnabledAndConfigured(ignoreEnabled) || !(list instanceof SvnChangeList)) { result = ListMergeStatus.ALIEN; } else { MergeInfoCached cachedState = getCurrentCache(); MergeInfoCached state = myMergeInfoCache.get... | check |
68,028 | ListMergeStatus (@NotNull CommittedChangeList list, @NotNull MergeInfoCached state, boolean isCached) { MergeCheckResult mergeCheckResult = state.getMap().get(list.getNumber()); ListMergeStatus result = state.copiedAfter(list) ? ListMergeStatus.COMMON : ListMergeStatus.from(mergeCheckResult); return ObjectUtils.notNull... | check |
68,029 | void () { myPanel.setMixedRevisions(myMergeInfoCache.isMixedRevisions(myPanel.getWcInfo(), myPanel.getLocalBranch())); } | updateMixedRevisionsForPanel |
68,030 | long (final String branchPath) { if (myCopyRevison != null && Objects.equals(myCopyRevison.getPath(), branchPath)) { return myCopyRevison.getRevision(); } myCopyRevison = new SvnMergeInfoCache.CopyRevison(myVcs, branchPath, myInfo.getRootInfo().getRepositoryUrl(), myBranch.getUrl(), myInfo.getUrl()); return -1; } | calculateCopyRevision |
68,031 | void () { myPathMergedMap.clear(); synchronized (myCalculatedLock) { myAlreadyCalculatedMap.clear(); } myMixedRevisionsFound = false; } | clear |
68,032 | MergeInfoCached () { synchronized (myCalculatedLock) { long revision = myCopyRevison != null ? myCopyRevison.getRevision() : -1; // TODO: NEW MAP WILL ALSO BE CREATED IN MergeInfoCached constructor return new MergeInfoCached(Collections.unmodifiableMap(myAlreadyCalculatedMap), revision); } } | getCached |
68,033 | MergeCheckResult (@NotNull final SvnChangeList list, final String branchPath) { synchronized (myCalculatedLock) { MergeCheckResult result; final long revision = calculateCopyRevision(branchPath); if (revision != -1 && revision >= list.getNumber()) { result = MergeCheckResult.COMMON; } else { result = myAlreadyCalculate... | checkList |
68,034 | MergeCheckResult (@NotNull SvnChangeList list, @NotNull String branchPath) { final Info info = myVcs.getInfo(new File(branchPath)); if (info == null || info.getUrl() == null || !isAncestor(myBranch.getUrl(), info.getUrl())) { return MergeCheckResult.NOT_MERGED; } MultiMap<MergeCheckResult, String> result = checkPaths(l... | checkAlive |
68,035 | void (String pathWithRevisionNumber, @NotNull MergeRangeList mergeRangeList) { Set<Long> revisions = new HashSet<>(); Set<Long> nonInheritableRevisions = new HashSet<>(); for (MergeRange range : mergeRangeList.getRanges()) { // TODO: Seems there is no much sense in converting merge range to list of revisions - we need ... | fillMergedRevisions |
68,036 | boolean () { return myMixedRevisionsFound; } | isMixedRevisionsFound |
68,037 | Collection<String> (final long number) { return myPartlyMerged.get(number); } | getNotMergedPaths |
68,038 | Url (@NotNull Url url, @NotNull String path) { try { return url.appendPath(path, false); } catch (SvnBindException e) { ExceptionUtil.rethrow(e); return null; } } | appendPath |
68,039 | Collection<String> (@NotNull SvnChangeList changeList) { return myPartiallyMerged.get(changeList.getNumber()); } | getNotMergedPaths |
68,040 | MergeCheckResult (@NotNull SvnChangeList changeList) { Set<String> notMergedPaths = new HashSet<>(); boolean hasMergedPaths = false; for (String path : changeList.getAffectedPaths()) { //noinspection EnumSwitchStatementWhichMissesCases switch (checkPath(path, changeList.getNumber())) { case MERGED -> hasMergedPaths = t... | checkList |
68,041 | MergeCheckResult (@NotNull String repositoryRelativePath, long revisionNumber) { MergeCheckResult result = MergeCheckResult.NOT_EXISTS; String sourceRelativePath = Url.getRelative(myMergeContext.getRepositoryRelativeSourcePath(), ensureStartSlash(repositoryRelativePath)); // TODO: SVNPathUtil.getRelativePath() is @NotN... | checkPath |
68,042 | boolean (@NotNull String parentUrl, @NotNull String childUrl) { return ".".equals(parentUrl) || Url.isAncestor(ensureStartSlash(parentUrl), ensureStartSlash(childUrl)); } | isUnder |
68,043 | boolean () { return myIsMerged; } | isMerged |
68,044 | boolean (@NotNull String workingCopyRelativePath, @NotNull Map<String, MergeRangeList> mergedPathsMap) { boolean processed = false; boolean isCurrentPath = workingCopyRelativePath.equals(mySourceRelativePath); if (mergedPathsMap.isEmpty()) { myIsMerged = false; processed = true; } else { String mergedPathAffectingSourc... | process |
68,045 | PropertyConsumer () { return new PropertyConsumer() { @Override public void handleProperty(@NotNull File path, @NotNull PropertyData property) throws SvnBindException { String workingCopyRelativePath = getWorkingCopyRelativePath(path); Map<String, MergeRangeList> mergeInfo = MergeRangeList.parseMergeInfo(property.getVa... | createPropertyHandler |
68,046 | String (@NotNull File file) { return toSystemIndependentName(Objects.requireNonNull(getRelativePath(myMergeContext.getWcInfo().getRootInfo().getIoFile(), file))); } | getWorkingCopyRelativePath |
68,047 | String (@NotNull String path) { return SystemInfo.isFileSystemCaseSensitive ? path : toUpperCase(path); } | toKey |
68,048 | boolean (@NotNull LogHierarchyNode node) { // TODO: Such filtering logic is not clear enough so far (and probably not correct for all cases - for instance when we perform merge // TODO: from branch1 to branch2 and have revision which contain merge changes from branch3 to branch1. // TODO: In this case paths of child lo... | checkListForPaths |
68,049 | boolean (@NotNull LogHierarchyNode tree) { LinkedList<LogHierarchyNode> queue = new LinkedList<>(); queue.addLast(tree); while (!queue.isEmpty()) { LogHierarchyNode element = queue.removeFirst(); ProgressManager.checkCanceled(); if (checkForEntry(element.getMe(), myMergeContext.getRepositoryRelativeSourcePath(), myMerg... | checkForSubtree |
68,050 | boolean (@NotNull LogEntry entry, @NotNull String localURL, @NotNull String relativeBranch) { boolean atLeastOneUnderBranch = false; for (LogEntryPath path : entry.getChangedPaths().values()) { if (Url.isAncestor(localURL, path.getPath())) { return true; } if (!atLeastOneUnderBranch && Url.isAncestor(relativeBranch, pa... | checkForEntry |
68,051 | SvnMergeInfoCache (@NotNull Project project) { return project.getService(SvnMergeInfoCache.class); } | getInstance |
68,052 | void (@NotNull WCInfoWithBranches info, String branchPath) { BranchInfo branchInfo = getBranchInfo(info, branchPath); if (branchInfo != null) { branchInfo.clear(); } } | clear |
68,053 | MergeInfoCached (@NotNull WCInfoWithBranches info, String branchPath) { BranchInfo branchInfo = getBranchInfo(info, branchPath); return branchInfo != null ? branchInfo.getCached() : null; } | getCachedState |
68,054 | MergeCheckResult (@NotNull WCInfoWithBranches info, @NotNull SvnChangeList list, @NotNull WCInfoWithBranches.Branch selectedBranch, final String branchPath) { MyCurrentUrlData rootMapping = myCurrentUrlMapping.get(info.getUrl()); BranchInfo mergeChecker = null; if (rootMapping == null) { rootMapping = new MyCurrentUrlD... | getState |
68,055 | boolean (@NotNull WCInfoWithBranches info, final String branchPath) { BranchInfo branchInfo = getBranchInfo(info, branchPath); return branchInfo != null && branchInfo.isMixedRevisionsFound(); } | isMixedRevisions |
68,056 | BranchInfo (@NotNull WCInfoWithBranches info, String branchPath) { MyCurrentUrlData rootMapping = myCurrentUrlMapping.get(info.getUrl()); return rootMapping != null ? rootMapping.getBranchInfo(branchPath) : null; } | getBranchInfo |
68,057 | void (@NotNull ProgressIndicator indicator) { try { myData = new FirstInBranch(vcs, repositoryRoot, branchUrl, trunkUrl).run(); } catch (VcsException e) { logAndShow(e); } } | run |
68,058 | void () { if (myData != null) { myRevision = myData.getCopySourceRevision(); if (myRevision != -1) { BackgroundTaskUtil.syncPublisher(vcs.getProject(), SVN_MERGE_INFO_CACHE).copyRevisionUpdated(); } } } | onSuccess |
68,059 | void (@NotNull Throwable error) { logAndShow(error); } | onThrowable |
68,060 | void (@NotNull Throwable error) { LOG.info(error); VcsBalloonProblemNotifier.showOverChangesView(vcs.getProject(), error.getMessage(), MessageType.ERROR); } | logAndShow |
68,061 | String () { return myPath; } | getPath |
68,062 | long () { return myRevision; } | getRevision |
68,063 | BranchInfo (final String branchUrl) { return myBranchInfo.get(branchUrl); } | getBranchInfo |
68,064 | void (@NotNull String branchUrl, @NotNull BranchInfo mergeChecker) { myBranchInfo.put(branchUrl, mergeChecker); } | addBranchInfo |
68,065 | AddClient () { return prepare(addClient); } | createAddClient |
68,066 | AnnotateClient () { return prepare(annotateClient); } | createAnnotateClient |
68,067 | ContentClient () { return prepare(contentClient); } | createContentClient |
68,068 | HistoryClient () { return prepare(historyClient); } | createHistoryClient |
68,069 | RevertClient () { return prepare(revertClient); } | createRevertClient |
68,070 | StatusClient () { return prepare(statusClient); } | createStatusClient |
68,071 | InfoClient () { return prepare(infoClient); } | createInfoClient |
68,072 | DeleteClient () { return prepare(deleteClient); } | createDeleteClient |
68,073 | CopyMoveClient () { return prepare(copyMoveClient); } | createCopyMoveClient |
68,074 | ConflictClient () { return prepare(conflictClient); } | createConflictClient |
68,075 | PropertyClient () { return prepare(propertyClient); } | createPropertyClient |
68,076 | MergeClient () { return prepare(mergeClient); } | createMergeClient |
68,077 | ChangeListClient () { return prepare(changeListClient); } | createChangeListClient |
68,078 | CheckoutClient () { return prepare(checkoutClient); } | createCheckoutClient |
68,079 | LockClient () { return prepare(myLockClient); } | createLockClient |
68,080 | CleanupClient () { return prepare(myCleanupClient); } | createCleanupClient |
68,081 | RelocateClient () { return prepare(myRelocateClient); } | createRelocateClient |
68,082 | VersionClient () { return prepare(myVersionClient); } | createVersionClient |
68,083 | ImportClient () { return prepare(myImportClient); } | createImportClient |
68,084 | ExportClient () { return prepare(myExportClient); } | createExportClient |
68,085 | UpgradeClient () { return prepare(myUpgradeClient); } | createUpgradeClient |
68,086 | BrowseClient () { return prepare(myBrowseClient); } | createBrowseClient |
68,087 | DiffClient () { return prepare(myDiffClient); } | createDiffClient |
68,088 | CheckinClient () { return prepare(myCheckinClient); } | createCheckinClient |
68,089 | RepositoryFeaturesClient () { return prepare(myRepositoryFeaturesClient); } | createRepositoryFeaturesClient |
68,090 | Url () { return myUrl; } | getUrl |
68,091 | Repository () { RootUrlInfo rootInfo = null; if (!myVcs.getProject().isDefault()) { rootInfo = myTarget.isFile() ? myVcs.getSvnFileUrlMapping().getWcRootForFilePath(getFilePath(myTarget.getFile())) : myVcs.getSvnFileUrlMapping().getWcRootForUrl(myTarget.getUrl()); } return rootInfo != null ? new Repository(rootInfo.get... | get |
68,092 | String () { return myName; } | toString |
68,093 | void (@NotNull Depth depth) { ourAllDepths.put(depth.myName, depth); } | register |
68,094 | Depth (@NonNls @NotNull String depthName) { Depth result = ourAllDepths.get(depthName); if (result == null) { throw new IllegalArgumentException("Unknown depth " + depthName); } return result; } | from |
68,095 | Depth (boolean recursive) { return recursive ? INFINITY : FILES; } | allOrFiles |
68,096 | Depth (boolean recursive) { return recursive ? INFINITY : EMPTY; } | allOrEmpty |
68,097 | boolean (@Nullable Depth depth) { return depth == null || depth == INFINITY || depth == UNKNOWN; } | isRecursive |
68,098 | Repository () { Repository result; if (myTarget.isUrl()) { // TODO: Also could still execute info when target is url - either to use info for authentication or to just get correct repository // TODO: url in case of "read" operations are allowed anonymously. result = new Repository(myTarget.getUrl()); } else { Info info... | get |
68,099 | String () { return myKey; } | toString |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.