From 7a972b5bf7ae066197f01606dea303846c4a161f Mon Sep 17 00:00:00 2001 From: Giacomo Tesio Date: Mon, 13 Feb 2017 15:09:07 +0100 Subject: [PATCH] SourceControl/Mercurial: hg heads on a single branch (fix #281) --- project/core/sourcecontrol/Mercurial/Mercurial.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/project/core/sourcecontrol/Mercurial/Mercurial.cs b/project/core/sourcecontrol/Mercurial/Mercurial.cs index 95f15a11a..98fcc5337 100644 --- a/project/core/sourcecontrol/Mercurial/Mercurial.cs +++ b/project/core/sourcecontrol/Mercurial/Mercurial.cs @@ -530,6 +530,14 @@ private ProcessResult HgHeads(IIntegrationResult result) { ProcessArgumentBuilder buffer = new ProcessArgumentBuilder(); buffer.AddArgument("heads"); + if(string.IsNullOrEmpty(Branch)) + { + buffer.AddArgument("."); + } + else + { + buffer.AddArgument(Branch); + } buffer.AddArgument("--template", "{rev}:"); var bpi = GetBuildProgressInformation(result);