Supports Mercurial+MQ and Git+StGit
Include a call to the script somewhere in your bash prompt:
PS1='\u@\h \w$($HOME/bin/vc-status.py)\$ '
user@host ~$
Shows the current branch name.
user@host ~/vc-status(master)$
The +
indicates changes.
user@host ~/vc-status(master+)$
The !
indicates staging.
user@host ~/vc-status(master!)$
Shows the current patch, that there are three other patches pushed below foo
, and one unpushed patch above foo
.
user@host ~/vc-status(master[3|foo|1])$