This class implements a basic XML-based changeset parser, that parses changeset information as reported by the Mercurial command line client, in XML format.
Пример #1
0
 /// <summary>
 /// This method should parse and store the appropriate execution result output
 /// according to the type of data the command line client would return for
 /// the command.
 /// </summary>
 /// <param name="exitCode">
 /// The exit code from executing the command line client.
 /// </param>
 /// <param name="standardOutput">
 /// The standard output from executing the command line client.
 /// </param>
 /// <remarks>
 /// Note that as long as you descend from <see cref="MercurialCommandBase{T}"/> you're not required to call
 /// the base method at all.
 /// </remarks>
 protected override void ParseStandardOutputForResults(int exitCode, string standardOutput)
 {
     Result = ChangesetXmlParser.Parse(standardOutput);
 }
Пример #2
0
 /// <summary>
 /// This method should parse and store the appropriate execution result output
 /// according to the type of data the command line client would return for
 /// the command.
 /// </summary>
 /// <param name="exitCode">
 /// The exit code from executing the command line client.
 /// </param>
 /// <param name="standardOutput">
 /// The standard output from executing the command line client.
 /// </param>
 /// <remarks>
 /// Note that as long as you descend from <see cref="MercurialCommandBase{T}"/> you're not required to call
 /// the base method at all.
 /// </remarks>
 protected override void ParseStandardOutputForResults(int exitCode, string standardOutput)
 {
     base.ParseStandardOutputForResults(exitCode, standardOutput);
     Result = ChangesetXmlParser.Parse(standardOutput).FirstOrDefault();
 }