steve losh

Posted on June 19, 2009.

hg-prompt adds an ‘hg prompt’ command to Mercurial for viewing repository information. It’s designed to be used in a shell prompt. You can grab the code from the repository on BitBucket.

Check out the documentation to find out how to use it.

Here’s what it looks like:

My bash prompt while using hg-prompt.

Questions, Comments, Suggestions

The code was kind of thrown together in one night after I got tired of chaining three or four hg runs together to get what I wanted. I’m sure it’s not perfect, so if you’ve got a way to improve it please add an issue and let me know.