Skip to content

ChubV/MercurialManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MercurialManager

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'));

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages