tests/test-convert-svn-source.t
changeset 23583 a8edcb9c1199
parent 22947 c63a09b6b337
child 25472 4d2b9b304ad0
--- a/tests/test-convert-svn-source.t	Mon Dec 15 13:32:34 2014 -0800
+++ b/tests/test-convert-svn-source.t	Fri Dec 12 15:53:17 2014 -0500
@@ -239,3 +239,16 @@
   converting...
   1 init projA
   0 adddir
+
+Test that a too-new repository format is properly rejected:
+  $ mv svn-empty/format format
+  $ echo 999 > svn-empty/format
+It's important that this command explicitly specify svn, otherwise it
+can have surprising side effects (like falling back to a perforce
+depot that can be seen from the test environment and slurping from that.)
+  $ hg convert --source-type svn svn-empty this-will-fail
+  initializing destination this-will-fail repository
+  file:/*/$TESTTMP/svn-empty does not look like a Subversion repository to libsvn version 1.*.* (glob)
+  abort: svn-empty: missing or unsupported repository
+  [255]
+  $ mv format svn-empty/format