Mercurial > hg > mercurial
changeset 247:dbf671db463f Eluru-6.0.x
test to reproduce TW-16278
author | Dmitry Neverov <dmitry.neverov@jetbrains.com> |
---|---|
date | Tue, 19 Apr 2011 18:35:37 +0400 |
parents | 5c1585e791c9 |
children | 20817ebd1a05 |
files | mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupportTest.java |
diffstat | 1 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupportTest.java Wed Apr 06 11:29:41 2011 +0400 +++ b/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupportTest.java Tue Apr 19 18:35:37 2011 +0400 @@ -252,6 +252,25 @@ assertTrue(res.getStdout().contains("7:376dcf05cd2a")); } + + public void labeling_should_not_populate_files_in_local_mirror() throws Exception { + VcsRootImpl root = createVcsRoot(simpleRepo()); + cleanRepositoryAfterTest(simpleRepo()); + myVcs.getCurrentVersion(root); + Settings settings = new Settings(new File(myServerPaths.getCachesDir(), "mercurial"), root); + File mirror = settings.getLocalRepositoryDir(); + File[] files = mirror.listFiles(); + assertEquals(files.length, 1); + assertEquals(files[0].getName(), ".hg"); + + myVcs.label("v1.0", "7:376dcf05cd2a", root, new CheckoutRules("")); + + files = mirror.listFiles(); + assertEquals(files.length, 1); + assertEquals(files[0].getName(), ".hg"); + } + + public void test_collect_changes_in_branch() throws Exception { VcsRootImpl vcsRoot = createVcsRoot(simpleRepo(), "test_branch");