aboutsummaryrefslogtreecommitdiff
path: root/utils/git-svn/git-svnrevert
diff options
context:
space:
mode:
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