C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.)

Приватные методы

Метод Описание
LazyExtractChangesetXmlPieces ( string xml ) : IEnumerable

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

Описание методов

LazyParse() публичный статический Метод

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. ///
Результат IEnumerable

Parse() публичный статический Метод

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. ///
Результат Changeset[]