[Swift-commit] r7273 - trunk/libexec
davidk at ci.uchicago.edu
davidk at ci.uchicago.edu
Wed Nov 6 14:59:26 CST 2013
Author: davidk
Date: 2013-11-06 14:59:25 -0600 (Wed, 06 Nov 2013)
New Revision: 7273
Modified:
trunk/libexec/svn-revision
Log:
Redirect svn errors so they don't get stored in Swift version
Modified: trunk/libexec/svn-revision
===================================================================
--- trunk/libexec/svn-revision 2013-11-04 21:03:44 UTC (rev 7272)
+++ trunk/libexec/svn-revision 2013-11-06 20:59:25 UTC (rev 7273)
@@ -2,8 +2,8 @@
hereversion() {
if [ -d ".svn" ] && [ -x "$(which svn)" ]; then
- R=$(svn info | grep '^Revision' | sed "s/Revision: /$1-r/")
- M=$(svn status | grep --invert-match '^\?' > /dev/null && echo "($1 modified locally)")
+ R=$(svn info 2>/dev/null | grep '^Revision' | sed "s/Revision: /$1-r/")
+ M=$(svn status 2>/dev/null | grep --invert-match '^\?' > /dev/null && echo "($1 modified locally)")
elif [ -d ".git" ] && [ -x "$(which git)" ]; then
R=$(git svn info | grep '^Revision' | sed "s/Revision: /$1-r/")
if git status --porcelain | grep 'M ' >/dev/null ; then
More information about the Swift-commit
mailing list