changeset 206:8a98b7c435cb Eluru-6.0.x

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 ccf0b5ad00c1
children 60b15937e218
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
@@ -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";
   }