diff .shell.d/50.vcs_functions.sh @ 396:980b3df541cd

vcs_functions: avoid putting hg prompt commands in blackbox log
author Augie Fackler <raf@durin42.com>
date Fri, 29 Jul 2016 17:07:38 -0400
parents 354d05616d65
children fff281929b47
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 -r . -T'{if(activebookmark,"{activebookmark}","{branch}")} {shortest(node)}' 2>/dev/null)
+    hginfo=$(hg log --config extensions.blackbox='!' -r . -T'{if(activebookmark,"{activebookmark}","{branch}")} {shortest(node)}' 2>/dev/null)
     if [ $? = 0 ] ; then
         echo "$hginfo"
         return 0