# HG changeset patch # User Dmitry Neverov # Date 1311149141 -14400 # Node ID 8f97c8ef1b67c5ffbed499e17329d24011f4a39a # Parent 643fa1236f4e7982affef3084ef7728eb1f8b846 Test reported changes have parents diff -r 643fa1236f4e -r 8f97c8ef1b67 mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupportTest.java --- a/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupportTest.java Wed Jul 20 12:04:08 2011 +0400 +++ b/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/MercurialVcsSupportTest.java Wed Jul 20 12:05:41 2011 +0400 @@ -456,6 +456,15 @@ } + public void collected_changes_should_contain_parents() throws Exception { + VcsRootImpl vcsRoot = createVcsRoot(simpleRepo()); + List changes = collectChanges(vcsRoot, "1:9875b412a788", "3:9522278aa38d", new CheckoutRules("")); + for (ModificationData change : changes) { + assertFalse(change.getParentRevisions().isEmpty()); + } + } + + private void assertFiles(final List expectedFiles, final ModificationData modificationData) { List actualFiles = new ArrayList(); for (VcsChange vc: modificationData.getChanges()) {