changeset 462:fff281929b47

shrc: set HGPLAIN in prompt scaffolding
author Augie Fackler <raf@durin42.com>
date Thu, 02 Aug 2018 14:09:02 -0400
parents 607bc0754921
children 1a3f8dff1214
files .shell.d/50.vcs_functions.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)