# HG changeset patch # User Dmitry Neverov # Date 1301550469 -14400 # Node ID 8a98b7c435cbd3dd2d12778d2b55323cf018837e # Parent ccf0b5ad00c1f03f209829a1aa9aa98aab6545e9 Test we write a default path to hgrc So push from build script should work diff -r ccf0b5ad00c1 -r 8a98b7c435cb mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/AgentSideCheckoutTest.java --- 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 @@ -114,6 +114,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"; }