Mercurial > hg > mercurial
changeset 212:a813cc021b13
Test we write a default path to hgrc
So push from build script should work
author | Dmitry Neverov <dmitry.neverov@jetbrains.com> |
---|---|
date | Thu, 31 Mar 2011 09:47:49 +0400 |
parents | 77d3c69b8dfe |
children | 8ec94ce51d84 |
files | mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/AgentSideCheckoutTest.java |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/AgentSideCheckoutTest.java Thu Jan 13 19:48:54 2011 +0300 +++ b/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/AgentSideCheckoutTest.java Thu Mar 31 09:47:49 2011 +0400 @@ -208,6 +208,14 @@ doUpdate(vcsRoot, "4:b06a290a363b", new IncludeRule(".", ".", null)); } + public void cloned_repo_should_contains_default_parameter_in_hgrc() throws VcsException, IOException { + VcsRoot root = createVcsRoot(simpleRepo()); + File workingDir = doUpdate(root, "4:b06a290a363b", new IncludeRule(".", ".", null)); + File hgrc = new File(workingDir, ".hg" + File.separator + "hgrc"); + String hgrcContent = FileUtil.readText(hgrc); + assertTrue(hgrcContent.contains("default = " + root.getProperty(Constants.REPOSITORY_PROP))); + } + protected String getTestDataPath() { return "mercurial-tests/testData"; }