# HG changeset patch # User Steve Losh # Date 1259111347 18000 # Node ID b8355d9279d4e11724deacdb4f42ffe00b3ba981 # Parent 9e86f39ef363334c145f764983ddfe5ae302eed3 Add patches to the prompt. diff -r 9e86f39ef363 -r b8355d9279d4 .hgrc --- a/.hgrc Sun Nov 08 11:19:21 2009 -0500 +++ b/.hgrc Tue Nov 24 20:09:07 2009 -0500 @@ -19,7 +19,7 @@ paste = ~/src/hg-paste/paste.py prompt = ~/src/hg-prompt/prompt.py histedit = ~/lib/hg/histedit -hg-git = ~/lib/hg/hg-git-abderrahim +hg-git = ~/lib/hg/hg-git collapse = ~/lib/hg/hgcollapse/hgext/collapse.py diffstat = ~/lib/hg/hgdiffstat/hgext/diffstat.py compass = ~/lib/hg/hg-compass/compass.py @@ -93,7 +93,7 @@ gl+ = gl -l100000000 -, = glog -l15 --template '\033[33;40m{rev} \033[37;40m{desc|firstline|fill68} \033[1;30;40m({date|age} ago by {author|person})\033[0;37;40m \033[33;40m{tags}\033[37;40m \033[35;40m{branches}\033[37;40m\n\n' +, = glog -l15 --template '\033[33;40m{rev} \033[37;40m{desc|firstline|fill68} \033[1;30;40m({date|age} by {author|person})\033[0;37;40m \033[33;40m{tags}\033[37;40m \033[35;40m{branches}\033[37;40m\n\n' ,+ = , -l100000000 diff -r 9e86f39ef363 -r b8355d9279d4 bash/prompt --- a/bash/prompt Sun Nov 08 11:19:21 2009 -0500 +++ b/bash/prompt Tue Nov 24 20:09:07 2009 -0500 @@ -1,6 +1,7 @@ #!/usr/bin/env bash -D=$'\[\e[37;40m\]' +D=$'\[\e[0m\]' +GREY=$'\[\e[30;1;40m\]' PINK=$'\[\e[35;40m\]' GREEN=$'\[\e[32;40m\]' ORANGE=$'\[\e[33;40m\]' @@ -9,7 +10,9 @@ hg prompt "\ {${D} on ${PINK}{branch}}\ {${D} at ${ORANGE}{tags|${D}, ${ORANGE}}}\ -{${GREEN}{status|modified|unknown}}{${GREEN}{update}}" 2> /dev/null +{${GREEN}{status|modified|unknown}}{${GREEN}{update}}\ +{${D}\npatches: {patches|pre_applied(${ORANGE})|post_applied(${D})|pre_unapplied(${GREY})|post_unapplied(${D})}}\ +" 2> /dev/null } tasks_ps1() {