sjl / hg-prompt (http://sjl.bitbucket.org/hg-prompt/)
An extension for Mercurial to add the 'prompt' command. Useful for putting repository information into your shell prompt efficiently.
| commit 100: | d12025340b02 |
| parent 99: | d431f1cb0dc8 |
- View sjl's profile
-
sjl's public repos »
- lindyjam
- hg-paste
- noodle-bucket
- hg-crew-sjl
- bitbucket-prettifier
- stevelosh
- hgtip
- slides
- hg-review-review
- tinpan
- grabtweets
- hg-website-content
- hg-website
- hgtip-content
- hg-review
- sjl.bitbucket.org
- cherryflavoredbugseverywhere
- hg-website-rendered
- gorilla-catalog
- t
- gorilla
- rit-sdc-website
- django-simplebackup
- hg-crew-sjl-patches
- mercurial-cli-templates
- hg-prompt
- django-hoptoad
- blatter
- snippy
- Send message
2 months ago
| filename | size | last modified | ||
|---|---|---|---|---|
| docs | ||||
| tests | ||||
| .hgignore | 51 B | 4 months ago | Add some styles for the docs. | |
| .hgtags | 90 B | 4 months ago | Added tag 0.2 for changeset a6ec48f03985 | |
| README | 1.4 KB | 4 months ago | Revamp the README to point to the docs. | |
| prompt.py | 17.1 KB | 2 months ago | Update the bookmark fix to be backwards compatible. |
README
-- markdown --
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://bitbucket.org/sjl/hg-prompt/
Edit the [extensions] section in your ~/.hgrc file:
[extensions]
prompt = (path to)/hg-prompt/prompt.py
Documentation
The documentation for hg-prompt is at the project page. There's a Quick Start guide, Full Usage Guide, Keyword List, 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!
