diff mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/PullCommand.java @ 349:e0464f11206c

TW-19698 Handle unrelated repositories When repository becames unrelated - clone it in different directory on the server. When changes are collected and any of revisions is from unrelated repository - return empty changes collection.
author Dmitry Neverov <dmitry.neverov@jetbrains.com>
date Thu, 12 Jan 2012 18:21:07 +0400
parents fd56b9524834
children 15c86ab0046c
line wrap: on
line diff
--- a/mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/PullCommand.java	Wed Jan 11 15:09:52 2012 +0400
+++ b/mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/PullCommand.java	Thu Jan 12 18:21:07 2012 +0400
@@ -42,6 +42,7 @@
     GeneralCommandLine cli = createCommandLine();
     cli.addParameter("pull");
     cli.addParameter(myPullUrl);
-    runCommand(cli, timeout);
+    CommandResult result = CommandUtil.runCommand(cli, timeout, getPrivateData(), false);
+    CommandUtil.checkCommandFailed(result);
   }
 }