Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
25,500 | void () { myRepository.update(); } | run |
25,501 | boolean () { HgProjectSettings settings = ((HgVcs)getVcs()).getProjectSettings(); return settings.getSyncSetting() == DvcsSyncSettings.Value.SYNC && !MultiRootBranches.diverged(getRepositories()); } | isSyncEnabled |
25,502 | List<HgRepository> () { return getRepositories(HgRepository.class); } | getRepositories |
25,503 | Repository (@NotNull Project project, @NotNull VirtualFile root, @NotNull Disposable parentDisposable) { return HgUtil.isHgRoot(root) ? HgRepositoryImpl.getInstance(root, project, parentDisposable) : null; } | createRepositoryIfValid |
25,504 | VcsKey () { return HgVcs.getKey(); } | getVcsKey |
25,505 | void () { try { HgGlobalSettings.getInstance().setHgExecutable(null); } catch (Throwable e) { addSuppressedException(e); } finally { super.tearDown(); } } | tearDown |
25,506 | void (@NotNull Project project, @Nullable VirtualFile repo) { HgRepository hgRepository = HgUtil.getRepositoryManager(project).getRepositoryForRoot(repo); assertNotNull(hgRepository); hgRepository.updateConfig(); } | updateRepoConfig |
25,507 | void (VirtualFile root) { initRepo(root.getPath()); } | createRepository |
25,508 | void (String repoRoot) { cd(repoRoot); hg("init"); touch("file.txt"); hg("add file.txt"); hg("commit -m initial -u asd"); } | initRepo |
25,509 | void (Project project, VirtualFile mapRoot) { if (project != null && (!project.isDefault()) && project.getBaseDir() != null && VfsUtilCore.isAncestor(project.getBaseDir(), mapRoot, false)) { mapRoot.refresh(false, false); final String path = mapRoot.equals(project.getBaseDir()) ? "" : mapRoot.getPath(); ProjectLevelVcsManager manager = ProjectLevelVcsManager.getInstance(project); manager.setDirectoryMappings(VcsUtil.addMapping(manager.getDirectoryMappings(), path, HgVcs.VCS_NAME)); } } | updateDirectoryMappings |
25,510 | String () { final String programName = "hg"; final String unixExec = "hg"; final String winExec = "hg.exe"; String exec = ExecutableHelper.findEnvValue(programName, Collections.singletonList(HG_EXECUTABLE_ENV)); if (exec != null) { return exec; } exec = findInSources(programName, unixExec, winExec); if (exec != null) { return exec; } throw new IllegalStateException(programName + " executable not found."); } | doFindExecutable |
25,511 | String (String programName, String unixExec, String winExec) { File pluginRoot = new File(PluginPathManager.getPluginHomePath("hg4idea")); File bin = new File(pluginRoot, FileUtil.toSystemDependentName("testData/bin")); File exec = new File(bin, SystemInfo.isWindows ? winExec : unixExec); if (exec.exists() && exec.canExecute()) { debug("Using " + programName + " from test data"); return exec.getPath(); } return null; } | findInSources |
25,512 | String (@NotNull String command) { return hg(command, false); } | hg |
25,513 | String (@NotNull String command, boolean ignoreNonZeroExitCode) { List<String> split = new ArrayList<>(); ContainerUtil.addAll(split, HG_EXECUTABLE, "--config", "ui.timeout=10"); split.addAll(splitCommandInParameters(command)); debug("hg " + command); HgCommandResult result; try { int attempt = 0; do { result = new ShellCommand(split, pwd(), null).execute(false, false); } while ((HgErrorUtil.isWLockError(result) || isUsedByAnotherProcess(result)) && attempt++ < 2); } catch (Exception e) { throw new RuntimeException(e); } int exitValue = result.getExitValue(); if (!ignoreNonZeroExitCode && exitValue != 0) { debug("exit code: " + exitValue + " " + result.getRawOutput()); throw new HgCommandFailedException(exitValue, result.getRawOutput(), result.getRawError()); } return result.getRawOutput(); } | hg |
25,514 | void () { hg("pull"); hg("update", true); hgMergeWith(""); } | updateProject |
25,515 | void (@NotNull String mergeWith) { hg("merge " + mergeWith, true); } | hgMergeWith |
25,516 | String () { return HG_EXECUTABLE; } | getHgExecutable |
25,517 | boolean (@Nullable HgCommandResult result) { //abort: process cannot access the file because it is being used by another process if (result == null) return false; return HgErrorUtil.isAbort(result) && result.getRawError().contains("used by another process"); } | isUsedByAnotherProcess |
25,518 | int () { return myExitCode; } | getExitCode |
25,519 | String () { return myRawOutput; } | getRawOutput |
25,520 | String () { return myRawError; } | getRawError |
25,521 | void () { HgRepository hgRepository = HgRepositoryImpl.getInstance(myRepository, myProject, myProject); assertNotNull(hgRepository); myValidator = new HgBranchReferenceValidator(hgRepository); cd(myRepository); hg("branch '" + BRANCH_NAME + "'"); String firstFile = "file.txt"; echo(firstFile, BRANCH_NAME); hg("commit -m 'createdBranch " + BRANCH_NAME + "' "); hg("branch '" + UNCOMMITTED_BRANCH + "'"); hgRepository.update(); } | before |
25,522 | Collection<Object[]> () { return List.of(new Object[][]{ {"WORD", "branch", true}, {"UNDERSCORED_WORD", "new_branch", true}, {"HIERARCHY", "user/branch", true}, {"HIERARCHY_2", "user/branch/sub_branch", true}, {"BEGINS_WITH_SLASH", "/branch", true}, {"WITH_DOTS", "complex.branch.name", true}, {"WITH_WHITESPACES", "branch with whitespaces", true}, {"WITH_SPECIAL_CHARS", "bra~nch-^%$", true}, {"NOT_RESERVED", "TIP", true}, {"CONTAINS_COLON", "bra:nch", false}, {"ONLY_DIGITS", "876876", false}, {"START_WITH_COLON", ":branch", false}, {"ENDS_WITH_COLON", "branch:", false}, {"RESERVED_WORD", "tip", false}, {"BRANCH_CONFLICT", BRANCH_NAME, false}, {"UNCOMMITTED_BRANCH_CONFLICT", UNCOMMITTED_BRANCH, false}, }); } | createData |
25,523 | void () { assertEquals(" Wrong validation for " + myBranchName, myExpected, myValidator.checkInput(myBranchName)); assertEquals(" Should be valid " + myBranchName, myExpected, myValidator.canClose(myBranchName)); } | testValid |
25,524 | void () { cd(myChildRepo); updateRepoConfig(myProject, myChildRepo); final String defaultPath = HgUtil.getRepositoryDefaultPath(myProject, myChildRepo); assertNotNull(defaultPath); assertEquals(myRepository.getPath(), FileUtil.toSystemIndependentName(defaultPath)); } | testDefaultPathInClonedRepo |
25,525 | void () { cd(myChildRepo); final String defaultPushPath = HgUtil.getRepositoryDefaultPushPath(myProject, myChildRepo); assertNotNull(defaultPushPath); assertEquals(myRepository.getPath(), FileUtil.toSystemIndependentName(defaultPushPath)); } | testPushPathWithoutAppropriateConfig |
25,526 | void (@NotNull VirtualFile repositoryRoot) { cd(repositoryRoot); hg("bookmark A_BookMark"); String aFile = "A.txt"; touch(aFile, "base"); hg("add " + aFile); hg("commit -m 'create file'"); hg("branch branchA"); echo(aFile, " modify with a"); hg("commit -m 'create branchA'"); hg("bookmark B_BookMark --inactive"); echo(aFile, " modify with AA"); hg("commit -m 'modify branchA'"); hg("up default"); hg("branch branchB"); echo(aFile, " modify with b"); hg("commit -m 'modify file in branchB'"); hg("bookmark C_BookMark"); hg("up branchA"); } | createBookmarksAndBranches |
25,527 | void () { cd(myRepository); VirtualFile subDir = myRepository.findFileByRelativePath(subDirName); assert subDir != null; cd(subDir); int namesSize = names.length; String beforeName = names[namesSize - 1]; VirtualFile before = VfsUtil.findFileByIoFile(new File(subDir.getPath(), beforeName), true); assert before != null; final String renamed = "renamed"; hg("mv " + beforeName + " " + renamed); myRepository.refresh(false, true); VirtualFile renamedFile = VfsUtil.findFileByIoFile(new File(subDir.getPath(), renamed), true); assert renamedFile != null; changeListManager.ensureUpToDate(); List<HgFileRevision> revisions = HgHistoryProvider.getHistory(VcsUtil.getFilePath(renamedFile), myRepository, myProject); assertEquals(3, revisions.size()); } | testUncommittedRenamedFileHistory |
25,528 | void () { cd(myRepository); HgQImportCommand importCommand = new HgQImportCommand(myHgRepository); importCommand.executeInCurrentThread("tip"); MqPatchDetails patchDetails = updateAndGetDetails(); TimedVcsCommit tipCommitDetailsFromLog = getLastRevisionDetails(); assertEqualsCommitInfo(tipCommitDetailsFromLog, patchDetails); } | testMqPatchInfoAfterQImport |
25,529 | MqPatchDetails () { myHgRepository.update(); List<HgNameWithHashInfo> appliedPatches = myHgRepository.getMQAppliedPatches(); assertEquals(1, appliedPatches.size()); String patchName = ContainerUtil.getFirstItem(HgUtil.getNamesWithoutHashes(appliedPatches)); assertNotNull(patchName); return HgMqAdditionalPatchReader.readMqPatchInfo(myRepository, getFileByPatchName(patchName)); } | updateAndGetDetails |
25,530 | TimedVcsCommit () { return ContainerUtil.getFirstItem(HgHistoryUtil.readAllHashes(myProject, myRepository, EmptyConsumer.getInstance(), Arrays.asList("-r", "tip"))); } | getLastRevisionDetails |
25,531 | File (@NotNull String patchName) { return new File(myMqPatchDir.getPath(), patchName); } | getFileByPatchName |
25,532 | void (@Nullable TimedVcsCommit logCommit, MqPatchDetails details) { if (logCommit != null) { List<Hash> parents = logCommit.getParents(); assertEquals(logCommit.getId().asString(), details.getNodeId()); assertEquals(!ContainerUtil.isEmpty(parents) ? parents.get(0).asString() : null, details.getParent()); assertEquals(new Date(logCommit.getTimestamp()), details.getDate()); assertEquals(BRANCH, details.getBranch()); } assertEquals(MESSAGE, details.getMessage()); assertEquals(myHgRepository.getRepositoryConfig().getNamedConfig("ui", "username"), details.getUser()); } | assertEqualsCommitInfo |
25,533 | void () { myVcsLogUserFilterTest = null; super.tearDown(); } | tearDown |
25,534 | HgLogProvider (@NotNull Project project) { List<VcsLogProvider> providers = ContainerUtil.filter(VcsLogProvider.LOG_PROVIDER_EP.getExtensions(project), provider -> provider.getSupportedVcs().equals(HgVcs.getKey())); TestCase.assertEquals("Incorrect number of HgLogProviders", 1, providers.size()); return (HgLogProvider)providers.get(0); } | findLogProvider |
25,535 | void () { myProvider = null; super.tearDown(); } | tearDown |
25,536 | String (@NotNull VcsFullCommitDetails details) { StringBuilder sb = new StringBuilder(); for (Change change : details.getChanges()) { appendFileChange(sb, change.getType(), callIfNotNull(change.getBeforeRevision(), (ContentRevision cr) -> cr.getFile().getName()), callIfNotNull(change.getAfterRevision(), (ContentRevision cr) -> cr.getFile().getName())); } return sb.toString(); } | getChanges |
25,537 | File (@NotNull String name) { return new File(myProject.getBasePath(), name); } | getFile |
25,538 | void (@NotNull String original, @NotNull String renamed, @NotNull StringBuilder changedFiles) { hg("mv " + original + " " + renamed); appendFileChange(changedFiles, Change.Type.MOVED, original, renamed); } | renameFile |
25,539 | void (@NotNull String original, @NotNull String copied, @NotNull StringBuilder changedFiles) { hg("cp " + original + " " + copied); appendFileChange(changedFiles, Change.Type.NEW, null, copied); } | copyFile |
25,540 | void (@NotNull String file, @NotNull StringBuilder changedFiles) { hg("rm " + file); appendFileChange(changedFiles, Change.Type.DELETED, file, null); } | deleteFile |
25,541 | void (@NotNull StringBuilder sb, @NotNull Change.Type type, @Nullable String before, @Nullable String after) { switch (type) { case MODIFICATION -> sb.append("M ").append(after); case NEW -> sb.append("A ").append(after); case DELETED -> sb.append("D ").append(before); case MOVED -> sb.append("R ").append(before).append(" -> ").append(after); } sb.append("\n"); } | appendFileChange |
25,542 | void () { cd(myRepository); hg("branch branchA"); String aFile = "A.txt"; touch(aFile, "a"); hg("add " + aFile); hg("commit -m 'create file in branchA' "); hg("up default"); touch(aFile, "default"); hg("add " + aFile); hg("commit -m 'create file in default branch'"); hgMergeWith("branchA"); HgCommandResult revertResult = new HgRevertCommand(myProject) .execute(myRepository, Collections.singleton(new File(myRepository.getPath(), aFile).getAbsolutePath()), null, false); assertTrue(HgErrorUtil.hasUncommittedChangesConflict(revertResult)); } | testRevertAfterMerge |
25,543 | void (String s, byte[] bytes) { Assert.assertEquals(new String(bytes, StandardCharsets.UTF_8), s); } | assertEquals |
25,544 | void () { List<String> errorLines = Arrays.asList("*** failed to import extension hgcr-gui: No module named hgcr-gui", "*** failed to import extension hgcr-gui-qt: No module named hgcr-gui-qt"); VcsTestUtil.assertEqualCollections(HgVersion.parseUnsupportedExtensions(errorLines), Arrays.asList("hgcr-gui", "hgcr-gui-qt")); } | testParseImportExtensionsError |
25,545 | void () { List<String> errorLines = Arrays.asList("*** failed to import extension kilnpath from" + " C:\\Users\\Developer\\AppData\\Local\\KilnExtensions\\kilnpath.py:" + " kilnpath is deprecated, and does not work in Mercurial 2.3 or higher." + " Use the official schemes extension instead"); VcsTestUtil.assertEqualCollections(HgVersion.parseUnsupportedExtensions(errorLines), Arrays.asList("kilnpath")); } | testParseImportDeprecatedExtensionsError |
25,546 | void () { cd(myRepository); touch("A.txt", "dsfdfdsf"); hg("add A.txt"); touch("B.txt"); hg("add B.txt"); hg("commit -m 2files_added"); File dirFile = mkdir("dir"); cd("dir"); touch("C.txt"); touch("D.txt"); hg("add C.txt"); hg("add D.txt"); hg("commit -m createDir"); String[] hash1 = hg("log -l 1 --template=" + SHORT_TEMPLATE_REVISION).split(":"); HgRevisionNumber r1number = HgRevisionNumber.getInstance(hash1[0], hash1[1]); HgFileRevision rev1 = new HgFileRevision(myProject, new HgFile(myRepository, dirFile), r1number, "", null, "", "", null, null, null, null); echo("C.txt", "aaaa"); echo("D.txt", "dddd"); hg("commit -m modifyDir"); String[] hash2 = hg("log -l 1 --template=" + SHORT_TEMPLATE_REVISION).split(":"); HgRevisionNumber r2number = HgRevisionNumber.getInstance(hash2[0], hash2[1]); HgFileRevision rev2 = new HgFileRevision(myProject, new HgFile(myRepository, dirFile), r2number, "", null, "", "", null, null, null, null); FilePath dirPath = VcsUtil.getFilePath(dirFile, true); List<Change> changes = HgUtil.getDiff(myProject, myRepository, dirPath, rev1.getRevisionNumber(), rev2.getRevisionNumber()); assertEquals(2, changes.size()); } | testDiffForDir |
25,547 | void () { try { Clock.reset(); } catch (Throwable e) { addSuppressedException(e); } finally { super.tearDown(); } } | tearDown |
25,548 | void () { myRepository.refresh(false, true); final VirtualFile file = myRepository.findFileByRelativePath(firstCreatedFile); assert file != null; List<String> users = Arrays.asList(defaultAuthor, author1, author2); final HgFile hgFile = new HgFile(myRepository, VfsUtilCore.virtualToIoFile(file)); final String date = DateFormatUtil.formatPrettyDate(Clock.getTime()); List<HgAnnotationLine> annotationLines = new HgAnnotateCommand(myProject).execute(hgFile, null); for (int i = 0; i < annotationLines.size(); ++i) { HgAnnotationLine line = annotationLines.get(i); assertEquals(users.get(i), line.get(HgAnnotation.FIELD.USER)); assertEquals(date, line.get(HgAnnotation.FIELD.DATE)); } } | testAnnotationWithVerboseOption |
25,549 | void () { annotationWithWhitespaceOption(true); } | testAnnotationWithIgnoredWhitespaces |
25,550 | void () { annotationWithWhitespaceOption(false); } | testAnnotationWithoutIgnoredWhitespaces |
25,551 | void (boolean ignoreWhitespaces) { cd(myRepository); String whitespaceFile = "whitespaces.txt"; touch(whitespaceFile, "not whitespaces"); myRepository.refresh(false, true); String whiteSpaceAuthor = "Mr.Whitespace"; final VirtualFile file = myRepository.findFileByRelativePath(whitespaceFile); assert file != null; hg("add " + whitespaceFile); hg("commit -m modify -u '" + defaultAuthor + "'"); echo(whitespaceFile, " ");//add several whitespaces hg("commit -m whitespaces -u '" + whiteSpaceAuthor + "'"); final HgFile hgFile = new HgFile(myRepository, VfsUtilCore.virtualToIoFile(file)); myVcs.getProjectSettings().setIgnoreWhitespacesInAnnotations(ignoreWhitespaces); List<HgAnnotationLine> annotationLines = new HgAnnotateCommand(myProject).execute(hgFile, null); HgAnnotationLine line = annotationLines.get(0); assertEquals(ignoreWhitespaces ? defaultAuthor : whiteSpaceAuthor, line.get(HgAnnotation.FIELD.USER)); } | annotationWithWhitespaceOption |
25,552 | void () { assertEquals("33ef48b940a9797973c3becd9d3a181593f5b57a", myRepositoryReader.readCurrentRevision()); } | testCurrentRecision |
25,553 | void () { File cacheDir = new File(myHgDir, "cache"); assertTrue(cacheDir.exists()); File branchFile = new File(cacheDir, "branchheads-served"); assertTrue(branchFile.exists()); debug(DvcsUtil.tryLoadFileOrReturn(branchFile, "")); assertEquals("25e44c95b2612e3cdf29a704dabf82c77066cb67", myRepositoryReader.readCurrentTipRevision()); } | testTip |
25,554 | void () { String currentBranch = myRepositoryReader.readCurrentBranch(); assertEquals("firstBranch", currentBranch); } | testCurrentBranch |
25,555 | void () { Collection<String> branches = myRepositoryReader.readBranches().keySet(); VcsTestUtil.assertEqualCollections(branches, myBranches); } | testBranches |
25,556 | void () { Collection<String> bookmarks = HgUtil.getNamesWithoutHashes(myRepositoryReader.readBookmarks()); VcsTestUtil.assertEqualCollections(bookmarks, myBookmarks); } | testBookmarks |
25,557 | void () { Collection<String> tags = HgUtil.getNamesWithoutHashes(myRepositoryReader.readTags()); VcsTestUtil.assertEqualCollections(tags, myTags); } | testTags |
25,558 | void () { Collection<String> localTags = HgUtil.getNamesWithoutHashes(myRepositoryReader.readLocalTags()); VcsTestUtil.assertEqualCollections(localTags, myLocalTags); } | testLocalTags |
25,559 | void () { assertEquals("B_BookMark", myRepositoryReader.readCurrentBookmark()); } | testCurrentBookmark |
25,560 | void () { hgMergeWith("branchB"); assertEquals(myRepositoryReader.readState(), Repository.State.MERGING); } | testMergeState |
25,561 | void () { assertEquals(myRepositoryReader.readState(), Repository.State.NORMAL); } | testState |
25,562 | void () { assertEquals(myRepositoryReader.readCurrentBranch(), "branchA"); } | testCurrentBranch |
25,563 | void () { VcsTestUtil.assertEqualCollections(myRepositoryReader.readBranches().keySet(), Arrays.asList("default", "branchA", "branchB")); } | testBranches |
25,564 | void () { cd(myRepository); myRepository.refresh(false, true); HgRepository hgRepository = HgRepositoryImpl.getInstance(myRepository, myProject, myProject); hg("up branchA"); hg("commit -m 'close branch' --close-branch"); hgRepository.update(); VcsTestUtil.assertEqualCollections(hgRepository.getOpenedBranches(), Arrays.asList("default", "branchB")); } | testOpenedBranches |
25,565 | void () { VcsTestUtil.assertEqualCollections(HgUtil.getNamesWithoutHashes(myRepositoryReader.readTags()), Arrays.asList("tag1", "tag2")); } | testTags |
25,566 | void () { VcsTestUtil.assertEqualCollections(HgUtil.getNamesWithoutHashes(myRepositoryReader.readLocalTags()), Collections.singletonList("localTag")); } | testLocalTags |
25,567 | void () { hg("update B_BookMark"); assertEquals(myRepositoryReader.readCurrentBookmark(), "B_BookMark"); } | testCurrentBookmark |
25,568 | void () { VcsTestUtil.assertEqualCollections(HgUtil.getNamesWithoutHashes(myRepositoryReader.readBookmarks()), Arrays.asList("A_BookMark", "B_BookMark", "C_BookMark")); } | testBookmarks |
25,569 | void () { cd(myRepository); hg("bookmark A_BookMark"); hg("tag tag1"); String aFile = "A.txt"; touch(aFile, "base"); hg("add " + aFile); hg("commit -m 'create file'"); hg("bookmark B_BookMark"); hg("branch branchA"); hg("tag tag2"); echo(aFile, " modify with a"); hg("commit -m 'create branchA'"); hg("up default"); hg("branch branchB"); hg("tag -l localTag"); echo(aFile, " modify with b"); hg("commit -m 'modify file in branchB'"); hg("bookmark C_BookMark"); hg("up branchA"); } | createBranchesAndTags |
25,570 | void (List<? extends VcsException> abstractVcsExceptions, @NotNull String tabDisplayName) { } | showErrors |
25,571 | void (Map<HotfixData, List<VcsException>> exceptionGroups, @NotNull String tabDisplayName) { } | showErrors |
25,572 | List<VcsException> (AbstractVcs vcs, TransactionRunnable runnable, Object vcsParameters) { return null; } | runTransactionRunnable |
25,573 | void (FileAnnotation annotation, VirtualFile file, AbstractVcs vcs, int line) { } | showAnnotation |
25,574 | void (FileAnnotation annotation, VirtualFile file, AbstractVcs vcs) { } | showAnnotation |
25,575 | void (@NotNull CommittedChangeList changelist, @Nullable @Nls String title) { } | showChangesListBrowser |
25,576 | void (@NotNull Collection<Change> changes, @Nullable @Nls String title) { } | showWhatDiffersBrowser |
25,577 | void (@NotNull CommittedChangesProvider provider, @NotNull RepositoryLocation location, @Nullable @Nls String title, @Nullable Component parent) { } | showCommittedChangesBrowser |
25,578 | void (@NotNull CommittedChangesProvider provider, @NotNull RepositoryLocation location, @NotNull ChangeBrowserSettings settings, int maxCount, @Nullable String title) { } | openCommittedChangesTab |
25,579 | List<VirtualFile> (List<? extends VirtualFile> files, MergeProvider provider, @NotNull MergeDialogCustomizer mergeDialogCustomizer) { return ContainerUtil.emptyList(); } | showMergeDialog |
25,580 | void (@NotNull VcsHistoryProvider historyProvider, @NotNull FilePath path, @NotNull AbstractVcs vcs) { } | showFileHistory |
25,581 | void (@NotNull VcsHistoryProvider historyProvider, AnnotationProvider annotationProvider, @NotNull FilePath path, @NotNull AbstractVcs vcs) { } | showFileHistory |
25,582 | Collection<VirtualFile> (List<? extends VirtualFile> files, String title, @Nullable String prompt, String singleFileTitle, String singleFilePromptTemplate, @NotNull VcsShowConfirmationOption confirmationOption) { notifyListeners(); return null; } | selectFilesToProcess |
25,583 | Collection<FilePath> (@NotNull List<? extends FilePath> files, String title, @Nullable String prompt, String singleFileTitle, String singleFilePromptTemplate, @NotNull VcsShowConfirmationOption confirmationOption) { notifyListeners(); return null; } | selectFilePathsToProcess |
25,584 | Collection<FilePath> (@NotNull List<? extends FilePath> files, String title, @Nullable String prompt, @Nullable String singleFileTitle, @Nullable String singleFilePromptTemplate, @NotNull VcsShowConfirmationOption confirmationOption, @Nullable String okActionName, @Nullable String cancelActionName) { notifyListeners(); return null; } | selectFilePathsToProcess |
25,585 | boolean (@NotNull Collection<? extends Change> changes, @NotNull LocalChangeList initialChangeList, @NotNull String commitMessage, @Nullable CommitResultHandler customResultHandler) { throw new UnsupportedOperationException(); } | commitChanges |
25,586 | void (@NotNull Project project, @NotNull VcsRevisionNumber revision, @NotNull VirtualFile file, @NotNull VcsKey key, @Nullable RepositoryLocation location, boolean local) { } | loadAndShowCommittedChangesDetails |
25,587 | void (VcsHelperListener listener) { myListeners.add(listener); } | addListener |
25,588 | void () { for (VcsHelperListener listener : myListeners) { listener.dialogInvoked(); } } | notifyListeners |
25,589 | void (HgFileStatusEnum status, String... filepath) { Set<HgChange> localChanges = new HgStatusCommand.Builder(true).build(myProject).executeInCurrentThread(projectRepoVirtualFile); assertTrue(localChanges.contains(new HgChange(getHgFile(filepath), status))); } | assertIsChanged |
25,590 | HgFile (String... filepath) { File fileToInclude = projectRepo; for (String path : filepath) { fileToInclude = new File(fileToInclude, path); } return new HgFile(projectRepoVirtualFile, fileToInclude); } | getHgFile |
25,591 | void (HgRevisionNumber incomingHead, HgRevisionNumber headBeforeUpdate) { List<HgRevisionNumber> newHeads = new HgHeadsCommand(myProject, projectRepoVirtualFile).executeInCurrentThread(); assertEquals("After updating, there should be only one head because the remote heads should have been merged", 1, newHeads.size()); HgRevisionNumber newHead = newHeads.get(0); HgParentsCommand parents = new HgParentsCommand(myProject); parents.setRevision(newHead); List<HgRevisionNumber> parentRevisions = parents.executeInCurrentThread(projectRepoVirtualFile); assertEquals(2, parentRevisions.size()); assertTrue(parentRevisions.contains(incomingHead)); assertTrue(parentRevisions.contains(headBeforeUpdate)); } | assertCurrentHeadIsMerge |
25,592 | void () { try { updateThroughPlugin(); fail("The update should have failed because a merge cannot be initiated with outstanding changes"); } catch (VcsException e) { //expected } } | assertUpdateThroughPluginFails |
25,593 | HgRevisionNumber () { return incomingHead; } | getIncomingHead |
25,594 | HgRevisionNumber () { return headBeforeUpdate; } | getHeadBeforeUpdate |
25,595 | PreUpdateInformation () { List<HgRevisionNumber> currentHeads = new HgHeadsCommand(myProject, projectRepoVirtualFile).executeInCurrentThread(); List<HgRevisionNumber> incomingChangesets = new HgIncomingCommand(myProject).executeInCurrentThread(projectRepoVirtualFile); assertEquals(1, currentHeads.size()); assertEquals(1, incomingChangesets.size()); incomingHead = incomingChangesets.get(0); headBeforeUpdate = currentHeads.get(0); return this; } | getPreUpdateInformation |
25,596 | void (final VcsConfiguration.StandardConfirmation op) { setStandardConfirmation(HgVcs.VCS_NAME, op, VcsShowConfirmationOption.Value.DO_ACTION_SILENTLY); } | doActionSilently |
25,597 | void (final VcsConfiguration.StandardConfirmation op) { setStandardConfirmation(HgVcs.VCS_NAME, op, VcsShowConfirmationOption.Value.DO_NOTHING_SILENTLY); } | doNothingSilently |
25,598 | void (final VcsConfiguration.StandardConfirmation op) { setStandardConfirmation(HgVcs.VCS_NAME, op, VcsShowConfirmationOption.Value.SHOW_CONFIRMATION); } | showConfirmation |
25,599 | HgFile (String... filepath) { File fileToInclude = myProjectDir; for (String path : filepath) { fileToInclude = new File(fileToInclude, path); } return new HgFile(myWorkingCopyDir, fileToInclude); } | getHgFile |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.