1
Vote

repo.Branches().WithIncludeClosedBranches() Parse error

description

Hi,

When I do the following command the compiler gives this error:
Mercurial.MercurialResultParsingException: Unable to parse output from the branches command

repo.Branches(new BranchesCommand().WithIncludeClosedBranches());


I found out that the following will prevent the error from happening, but i don't know if this is a correct fix:

(original) var re = new Regex(@"^(?<name>.*)\s+(?<revno>-?\d+):[a-f0-9]+(\s+\((inactive)\))?$", RegexOptions.IgnoreCase);

(fix) var re = new Regex(@"^(?<name>.*)\s+(?<revno>-?\d+):[a-f0-9]+(\s+\((inactive|closed)\))?$", RegexOptions.IgnoreCase);

BranchesCommand.cs Line: 116

I hope this is a proper fix,and will be shipped in a next version, but if not how can i prevent this from happening?

Thanks,
Robin.

comments