Commits

Felix Eckhofer  committed 1f52b28

Add test for missing ".svn/entries"

  • Participants
  • Parent commits 0343a23

Comments (0)

Files changed (1)

File tests/test-svn

     posttest
 }
 
+test_missing_svnentries()
+{
+    echo "test_missing_svnentries"
+    pretest "svn-repo-1"
+
+    if [ ! -f ".svn/wc.db" ]; then
+        echo "svn using pre-1.7 format, skipping"
+        posttest
+        return
+    fi
+
+    if [ -f ".svn/entries" ]; then
+        assert_vcprompt "wc.db and entries" "svn" "%n"
+        rm -f ".svn/entries"
+    fi
+
+    assert_vcprompt "wc.db only" "svn" "%n"
+
+    posttest
+}
+
 find_vcprompt
 check_svn
 find_svnrepo
 test_basics
 test_weird_checkout
 test_multiproject_repo
+test_missing_svnentries