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

Installs: 731

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 1

Open Issues: 0

pkg:composer/chub/mercurial-manager

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

This package is not auto-updated.

Last update: 2025-10-06 15:37:01 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'));