changeset 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 078a8053be9f
children 98484e1f564f
files .shell.d/50.vcs_functions.sh
diffstat 1 files changed, 1 insertions(+), 1 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 -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