chub/mercurial-manager

There is no license information available for the latest version (dev-master) of this package.

PHP class to get info about mercurial (hg) repository

dev-master / 0.1.x-dev 2013-04-23 12:34 UTC

This package is not auto-updated.

Last update: 2024-12-16 12:05:45 UTC


README

PHP class to get info about mercurial (hg) repository.

Installation

Add "chub/mercurial-manager": "dev-master" to require section of your composer.json and run php composer.phar update

Usage

<?php
require_once 'vendor/autoload.php';
use ChubProduction\MercurialManager\MercurialManager;

// Current directory
$m = new MercurialManager();
// Tip revision node
$node = $m->getNode();

echo $node->getDate()->format('d.m.Y H:i:s'), "\n";
echo $node->getAuthor();
// Get modified files
var_dump($node->getFiles('M'));