This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
This package is abandoned and no longer maintained. No replacement package was suggested.

Mercurial helper

Installs: 102

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 0

Open Issues: 0


1.0 2016-05-13 13:37 UTC

This package is not auto-updated.

Last update: 2017-08-04 08:17:40 UTC


Latest Stable Version Total Downloads License


The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yii2mod/yii2-hg "*"

or add

"yii2mod/yii2-hg": "*"

to the require section of your composer.json.


  1. Requires configured ErrorHandler from yii2mod/yii2-cron-log package
  2. Add the SelfUpdateCommand to the console.php configuration file
'controllerMap' => [
    'selfupdate' => 'yii2mod\hg\commands\SelfUpdateCommand',


Just add the following code to your main layout

<?php if (YII_DEBUG): ?>
        <?php $this->title .= ' revision:' . \yii2mod\hg\helpers\HgHelper::getRevision(); ?>
<?php endif; ?>