Class: RubyMaat::Parsers::MercurialParser

Inherits:
BaseParser
  • Object
show all
Defined in:
lib/ruby_maat/parsers/mercurial_parser.rb

Overview

Mercurial parser

Input: hg log –template “rev: rev author: author date: date|shortdate files:n%‘{filen’}n” –date “>YYYY-MM-DD”

Sample format: rev: 123 author: John Doe date: 2015-06-15 files: src/main.py test/test_main.py

rev: 124 author: Jane Smith date: 2015-06-16 files: lib/helper.py

Constant Summary collapse

ENTRY_PATTERN =
/^rev: (\d+) author: ([^0-9][^:]*?) date: (\d{4}-\d{2}-\d{2}) files:$/

Method Summary

Methods inherited from BaseParser

#initialize, #parse

Constructor Details

This class inherits a constructor from RubyMaat::Parsers::BaseParser