C# Class Mercurial.ChangesetXmlParser

This class implements a basic XML-based changeset parser, that parses changeset information as reported by the Mercurial command line client, in XML format.
Mostrar archivo Open project: TargetProcess/Target-Process-Plugins Class Usage Examples

Public Methods

Method Description
LazyParse ( string xml ) : IEnumerable

Parse the given XML lazily and return a collection of Changeset objects for the information contained in it, in the order the changesets appear in the xml.

Parse ( string xml ) : Changeset[]

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

Private Methods

Method Description
LazyExtractChangesetXmlPieces ( string xml ) : IEnumerable

Lazily extract all the <logentry>...</logentry> xml pieces from the changeset xml log.

Method Details

LazyParse() public static method

Parse the given XML lazily and return a collection of Changeset objects for the information contained in it, in the order the changesets appear in the xml.
/// An unknown path action character was detected in the log output. /// - or - /// The XML content was not legal according to the expected format. ///
public static LazyParse ( string xml ) : IEnumerable
xml string /// The XML to parse. ///
return IEnumerable

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[]