# HG changeset patch # User Augie Fackler # Date 1533233342 14400 # Node ID fff281929b47ba12a1adf22fc7c8dc25e1f9bba7 # Parent 607bc0754921d7158ceab9592f0700ba43fe9f8b shrc: set HGPLAIN in prompt scaffolding diff --git a/.shell.d/50.vcs_functions.sh b/.shell.d/50.vcs_functions.sh --- a/.shell.d/50.vcs_functions.sh +++ b/.shell.d/50.vcs_functions.sh @@ -125,7 +125,7 @@ function vcs_current_branch() { echo $br $rev return 0 fi - hginfo=$(hg log --config extensions.blackbox='!' -r . -T'{if(activebookmark,"{activebookmark}","{branch}")} {shortest(node)}' 2>/dev/null) + hginfo=$(HGPLAIN=1 hg log --config extensions.blackbox='!' -r . -T'{if(activebookmark,"{activebookmark}","{branch}")} {shortest(node)}' 2>/dev/null) if [ $? = 0 ] ; then echo "$hginfo" return 0 @@ -134,7 +134,7 @@ function vcs_current_branch() { } function find_dvcs_root() { - local hgroot=`hg root 2> /dev/null` + local hgroot=`HGPLAIN=1 hg root 2> /dev/null` local gitroot=$(git rev-parse --show-toplevel 2> /dev/null) local hglen=$(expr length $hgroot) local gitlen=$(expr length $gitroot)