Overview

Now extension for Mercurial

This hg-now is troter's version git-now. hg-now adds commands to Mercurial which create a temporary commit/patch quickly.

Inspire.

Similar extensions.

Installing

Clone the repository:

hg clone http://bitbucket.org/troter/hg-now/

Edit the [extensions] section in your ~/.hgrc file:

[extensions]
now = [path to]/hg-now/now.py

Usage

To create a new temporary commit:

hg now

To interactively create a new temporary commit:

hg nowrecord

To fixup commit(hg qrefresh for commit):

hg fixup

To create a new temporary patch:

hg qnow

To fixup patch:

hg qfixup # alias of qrefresh

Hints and tips

Change the default message template:

[now]
template = [from {command}] {date(date, '%Y-%m-%d %H:%M:%S')}