Tweaks/bugfixes for https://hg.stevelosh.com/hg-prompt
Fix bytes wrapper to work in Python 2 as well
ae33e6b815ce — David Champion 1 year, 11 months ago
py3/unicode: adapt cmdtable entries to bytestrings

clone

read-only
https://hg.sr.ht/~sietsebb/hg-prompt
read/write
ssh://hg@hg.sr.ht/~sietsebb/hg-prompt

#hg-prompt

hg-prompt adds an 'hg prompt' command to Mercurial for viewing repository information. It's designed to be used in a shell prompt.

#Requirements

hg-prompt requires Python 2.5+ and (obviously) Mercurial.

#Installing

Clone the repository:

$ hg clone http://hg.stevelosh.com/hg-prompt/

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

[extensions]
prompt = (path to)/hg-prompt/prompt.py

#Documentation

Hg-prompt has a docs site. There's a Quick Start guide, Full Usage Guide, Keyword List, Sample Prompts, and a few other things there.

The documentation is stored in the docs/ directory of the repository if you prefer to read it offline.

#Questions, Comments, Suggestions

The code was kind of thrown together in a few nights 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.

Patches are also welcome!