Mercurial > dotfiles
comparison .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 |
comparison
equal
deleted
inserted
replaced
395:078a8053be9f | 396:980b3df541cd |
---|---|
123 }'` | 123 }'` |
124 local rev=`svn info | grep Revision | sed 's/.*: /r/'` | 124 local rev=`svn info | grep Revision | sed 's/.*: /r/'` |
125 echo $br $rev | 125 echo $br $rev |
126 return 0 | 126 return 0 |
127 fi | 127 fi |
128 hginfo=$(hg log -r . -T'{if(activebookmark,"{activebookmark}","{branch}")} {shortest(node)}' 2>/dev/null) | 128 hginfo=$(hg log --config extensions.blackbox='!' -r . -T'{if(activebookmark,"{activebookmark}","{branch}")} {shortest(node)}' 2>/dev/null) |
129 if [ $? = 0 ] ; then | 129 if [ $? = 0 ] ; then |
130 echo "$hginfo" | 130 echo "$hginfo" |
131 return 0 | 131 return 0 |
132 fi | 132 fi |
133 return 1 | 133 return 1 |