chub/mercurial-manager

此包最新版本(dev-master)无可用许可证信息。

PHP类,用于获取mercurial (hg) 仓库的信息

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

This package is not auto-updated.

Last update: 2024-09-23 11:10:20 UTC


README

PHP类,用于获取mercurial (hg) 仓库的信息。

安装

"chub/mercurial-manager": "dev-master"添加到composer.json文件的require部分,然后运行php composer.phar update

用法

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