Examples of workingCopy()


Examples of com.aragost.javahg.BaseRepository.workingCopy()

                }
            }
        };
        cmd.execute();
        writeFile("A");
        repo.workingCopy().add("A");
        try {
            // The previous config change is not forgotten
            CommitCommand commit = CommitCommand.on(repo).message("m");
            Changeset cs = commit.execute();
            assertFailedExecution(commit, "Username is " + cs.getUser());
View Full Code Here

Examples of com.aragost.javahg.BaseRepository.workingCopy()

        BaseRepository repo = getTestRepository();
        Changeset cs1 = createChangeset();
        createChangeset();
        Changeset newTip = RollbackCommand.on(repo).execute();
        Assert.assertSame(cs1, newTip);
        Assert.assertEquals(1, repo.workingCopy().status().getModified().size());
        // The following commit might fail, see mercurial issue 3261
        // TODO How to handle cases like this?
        //createChangeset();
    }
}
View Full Code Here

Examples of com.aragost.javahg.BaseRepository.workingCopy()

                }
            }
        };
        cmd.execute();
        writeFile("A");
        repo.workingCopy().add("A");
        try {
            // The previous config change is not forgotten
            CommitCommand commit = CommitCommand.on(repo).message("m");
            Changeset cs = commit.execute();
            assertFailedExecution(commit, "Username is " + cs.getUser());
View Full Code Here

Examples of com.aragost.javahg.Repository.workingCopy()

        Changeset curCs = commitCmd.execute();

        BackoutCommand.on(repo).rev(backoutCs.getNode()).merge()
                .message("BackoutMerge").user("user").execute();

        Assert.assertEquals(curCs, repo.workingCopy().getParent1());
        Assert.assertEquals(backoutCs, repo.workingCopy().getParent2()
                .getParent1());

        commitCmd.execute();
View Full Code Here

Examples of com.aragost.javahg.Repository.workingCopy()

        BackoutCommand.on(repo).rev(backoutCs.getNode()).merge()
                .message("BackoutMerge").user("user").execute();

        Assert.assertEquals(curCs, repo.workingCopy().getParent1());
        Assert.assertEquals(backoutCs, repo.workingCopy().getParent2()
                .getParent1());

        commitCmd.execute();

        Assert.assertEquals("bar", readFile("b"));
View Full Code Here

Examples of com.aragost.javahg.Repository.workingCopy()

        Changeset curCs = commitCmd.execute();

        BackoutCommand.on(repo).rev(backoutCs.getNode())
                .message("BackoutMerge").user("user").execute();

        Assert.assertEquals(curCs, repo.workingCopy().getParent1());
        Assert.assertNull(repo.workingCopy().getParent2());

        commitCmd.execute();
        Assert.assertEquals("bar", readFile("b"));
        Assert.assertEquals(4, LogCommand.on(repo).execute().size());
View Full Code Here

Examples of com.aragost.javahg.Repository.workingCopy()

        BackoutCommand.on(repo).rev(backoutCs.getNode())
                .message("BackoutMerge").user("user").execute();

        Assert.assertEquals(curCs, repo.workingCopy().getParent1());
        Assert.assertNull(repo.workingCopy().getParent2());

        commitCmd.execute();
        Assert.assertEquals("bar", readFile("b"));
        Assert.assertEquals(4, LogCommand.on(repo).execute().size());
    }
View Full Code Here

Examples of com.aragost.javahg.Repository.workingCopy()

        Changeset backoutCs = commitCmd.execute();

        BackoutCommand.on(repo).rev(backoutCs.getNode()).merge()
                .message("BackoutMerge").user("user").execute();

        Assert.assertEquals(backoutCs, repo.workingCopy().getParent1().getParent1());
        Assert.assertEquals(null, repo.workingCopy().getParent2());       
        Assert.assertEquals(null, repo.workingCopy().getParent1().getParent2());

        Assert.assertEquals("bar", readFile("b"));
        Assert.assertEquals(3, LogCommand.on(repo).execute().size());
View Full Code Here

Examples of com.aragost.javahg.Repository.workingCopy()

        BackoutCommand.on(repo).rev(backoutCs.getNode()).merge()
                .message("BackoutMerge").user("user").execute();

        Assert.assertEquals(backoutCs, repo.workingCopy().getParent1().getParent1());
        Assert.assertEquals(null, repo.workingCopy().getParent2());       
        Assert.assertEquals(null, repo.workingCopy().getParent1().getParent2());

        Assert.assertEquals("bar", readFile("b"));
        Assert.assertEquals(3, LogCommand.on(repo).execute().size());
    }
View Full Code Here

Examples of com.aragost.javahg.Repository.workingCopy()

        BackoutCommand.on(repo).rev(backoutCs.getNode()).merge()
                .message("BackoutMerge").user("user").execute();

        Assert.assertEquals(backoutCs, repo.workingCopy().getParent1().getParent1());
        Assert.assertEquals(null, repo.workingCopy().getParent2());       
        Assert.assertEquals(null, repo.workingCopy().getParent1().getParent2());

        Assert.assertEquals("bar", readFile("b"));
        Assert.assertEquals(3, LogCommand.on(repo).execute().size());
    }
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.