Parse() public static method

Parse the given XML and return Changeset objects for the information contained in it, ordered in descending order by the revision numbers (ie. latest changeset first.)
/// An unknown path action character was detected in the log output. ///
public static Parse ( string xml ) : Changeset[]
xml string /// The XML to parse. ///
return Changeset[]
コード例 #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();
 }