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);