Out of my many aliases and functions, there is one which I use very often when working with Mercurial. I called it hgcl which is loosely an abbreviation based on "Mercurial commit log".

The only thing it does is showing the log starting from a given commit. By default it will start from the current commit.

Here is its definition:

function hgcl() {
    commit_id=${1:-.}
    hg log -r "reverse(ancestors($commit_id))" -G
}
export -f hgcl

Comments

comments powered by Disqus