public class DirCacheCheckoutTest extends RepositoryTestCase
Modifier and Type | Field and Description |
---|---|
protected ObjectId |
theHead |
protected ObjectId |
theMerge |
db, trash
ASSUME_UNCHANGED, author, committer, CONTENT, CONTENT_ID, LENGTH, mockSystemReader, MOD_TIME, SMUDGE
Constructor and Description |
---|
DirCacheCheckoutTest() |
assertEqualsFile, check, checkFile, checkoutBranch, commitFile, copyFile, createBranch, createEntry, createEntry, createEntry, deleteTrashFile, fsTick, indexState, lookup, read, resetIndex, setUp, slashify, writeLink, writeTrashFile, writeTrashFile, writeTrashFiles
addRepoToClose, createBareRepository, createRepository, createTempDirectory, createTempFile, createUniqueTestGitDir, createWorkRepository, getCeilings, getTemporaryDirectory, indexState, read, recursiveDelete, runHook, tearDown, tick, write, write
public void testResetHard() throws IOException, NoFilepatternException, GitAPIException
public void testResetHardFromIndexEntryWithoutFileToTreeWithoutFile() throws Exception
WorkDir: Empty
Index: f/g
Merge: x
Exception
public void testInitialCheckout() throws Exception
Exception
public void testRules1thru3_NoIndexEntry() throws IOException
IOException
protected void go() throws IllegalStateException, IOException
IllegalStateException
IOException
public void testRules4thru13_IndexEntryNotInHead() throws IOException
IOException
public void testDirectoryFileSimple() throws IOException
IOException
public void testDirectoryFileConflicts_1() throws Exception
Exception
public void testDirectoryFileConflicts_2() throws Exception
Exception
public void testDirectoryFileConflicts_3() throws Exception
Exception
public void testDirectoryFileConflicts_4() throws Exception
Exception
public void testDirectoryFileConflicts_5() throws Exception
Exception
public void testDirectoryFileConflicts_5b() throws Exception
Exception
public void testDirectoryFileConflicts_6() throws Exception
Exception
public void testDirectoryFileConflicts_6b() throws Exception
Exception
public void testDirectoryFileConflicts_7() throws Exception
Exception
public void testDirectoryFileConflicts_8() throws Exception
Exception
public void testDirectoryFileConflicts_9() throws Exception
Exception
public void testDirectoryFileConflicts_10() throws Exception
Exception
public void testDirectoryFileConflicts_11() throws Exception
Exception
public void testDirectoryFileConflicts_12() throws Exception
Exception
public void testDirectoryFileConflicts_13() throws Exception
Exception
public void testDirectoryFileConflicts_14() throws Exception
Exception
public void testDirectoryFileConflicts_15() throws Exception
Exception
public void testDirectoryFileConflicts_15b() throws Exception
Exception
public void testDirectoryFileConflicts_16() throws Exception
Exception
public void testDirectoryFileConflicts_17() throws Exception
Exception
public void testDirectoryFileConflicts_18() throws Exception
Exception
public void testDirectoryFileConflicts_19() throws Exception
Exception
protected void assertConflict(String s)
protected void assertUpdated(String s)
protected void assertRemoved(String s)
protected void assertNoConflicts()
protected void doit(HashMap<String,String> h, HashMap<String,String> m, HashMap<String,String> i) throws IOException
IOException
public void testUntrackedConflicts() throws IOException
IOException
public void testCloseNameConflictsX0() throws IOException
IOException
public void testCloseNameConflicts1() throws IOException
IOException
public void testCheckoutHierarchy() throws IOException
IOException
public void testCheckoutOutChanges() throws IOException
IOException
public void testCheckoutChangeLinkToEmptyDir() throws Exception
Exception
public void testCheckoutChangeLinkToEmptyDirs() throws Exception
Exception
public void testCheckoutChangeLinkToNonEmptyDirs() throws Exception
Exception
public void testCheckoutChangeLinkToNonEmptyDirsAndNewIndexEntry() throws Exception
Exception
public void testCheckoutChangeFileToEmptyDir() throws Exception
Exception
public void testCheckoutChangeFileToEmptyDirs() throws Exception
Exception
public void testCheckoutChangeFileToNonEmptyDirs() throws Exception
Exception
public void testCheckoutChangeFileToNonEmptyDirsAndNewIndexEntry() throws Exception
Exception
public void testCheckoutOutChangesAutoCRLFfalse() throws IOException
IOException
public void testCheckoutOutChangesAutoCRLFInput() throws IOException
IOException
public void testCheckoutOutChangesAutoCRLFtrue() throws IOException
IOException
public void testCheckoutOutChangesAutoCRLFtrueBinary() throws IOException
IOException
public void testCheckoutUncachedChanges() throws IOException
IOException
public void testDontOverwriteDirtyFile() throws IOException
IOException
public void testDontOverwriteEmptyFolder() throws IOException
IOException
public void testOverwriteUntrackedIgnoredFile() throws IOException, GitAPIException
IOException
GitAPIException
public void testOverwriteUntrackedFileModeChange() throws IOException, GitAPIException
IOException
GitAPIException
public void testOverwriteUntrackedLinkModeChange() throws Exception
Exception
public void testFileModeChangeWithNoContentChangeUpdate() throws Exception
Exception
public void testFileModeChangeAndContentChangeConflict() throws Exception
Exception
public void testDirtyFileModeEqualHeadMerge() throws Exception
Exception
public void testDirtyFileModeEqualIndexMerge() throws Exception
Exception
public void testFileModeChangeAndContentChangeNoConflict() throws Exception
Exception
public void testMultipleContentConflicts() throws Exception
Exception
public void testFolderFileAndContentConflicts() throws Exception
Exception
public void assertWorkDir(Map<String,String> i) throws CorruptObjectException, IOException
CorruptObjectException
IOException
Copyright © 2020 Eclipse JGit Project. All rights reserved.