aboutsummaryrefslogtreecommitdiff
path: root/utils/git-svn/git-svnrevert
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-05-27 18:44:32 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-05-27 18:44:32 +0000
commit5a5ac124e1efaf208671f01c46edb15f29ed2a0b (patch)
treea6140557876943cdd800ee997c9317283394b22c /utils/git-svn/git-svnrevert
parentf03b5bed27d0d2eafd68562ce14f8b5e3f1f0801 (diff)
Diffstat (limited to 'utils/git-svn/git-svnrevert')
-rwxr-xr-xutils/git-svn/git-svnrevert7
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/git-svn/git-svnrevert b/utils/git-svn/git-svnrevert
index f15e7abfb3f1..4185ee7ae87a 100755
--- a/utils/git-svn/git-svnrevert
+++ b/utils/git-svn/git-svnrevert
@@ -14,8 +14,13 @@ fi
COMMIT=$1
OTHER=$(git svn find-rev "$COMMIT")
-if [ $? -ne 0 ]; then
+if [ $? -ne 0 ] || [ "$OTHER" = "" ]; then
echo "Error! Could not find an svn/git revision for commit $COMMIT!"
+ echo
+ echo "Possible problems are:"
+ echo " * Your revision number ($COMMIT) is wrong"
+ echo " * This tree is not up to date (before that commit)"
+ echo " * This commit in in another three (llvm, clang, compiler-rt, etc)"
exit 1
fi