# # # add_dir "tests/importing_svn_one_revision_nodelta" # # add_file "tests/importing_svn_one_revision_nodelta/__driver__.lua" # content [1fd1be2ccce749500d710cc4b880d0a3a8e04ca3] # # add_file "tests/importing_svn_one_revision_nodelta/makerepo.sh" # content [2b1a11ffe51150dbcafea3f68d47ef61606cb771] # # add_file "tests/importing_svn_one_revision_nodelta/svn-repository.dump" # content [e625825a0f0a0396b8e93e3d74d65d90db9ea770] # # set "tests/importing_svn_one_revision_nodelta/makerepo.sh" # attr "mtn:execute" # value "true" # ============================================================ --- tests/importing_svn_one_revision_nodelta/__driver__.lua 1fd1be2ccce749500d710cc4b880d0a3a8e04ca3 +++ tests/importing_svn_one_revision_nodelta/__driver__.lua 1fd1be2ccce749500d710cc4b880d0a3a8e04ca3 @@ -0,0 +1,9 @@ + +mtn_setup() + + +-- See makerepo.sh on how this repository was created. +check(get("svn-repository.dump")) + +-- import into monotone +check(mtn("--branch=test", "svn_import", "svn-repository.dump"), 0, false, false) ============================================================ --- tests/importing_svn_one_revision_nodelta/makerepo.sh 2b1a11ffe51150dbcafea3f68d47ef61606cb771 +++ tests/importing_svn_one_revision_nodelta/makerepo.sh 2b1a11ffe51150dbcafea3f68d47ef61606cb771 @@ -0,0 +1,34 @@ +#!/bin/sh + +REPOSITORY=`pwd`/svn-repository +export REPO + +# deleting the existing cvs-repository +rm -vrf $REPOSITORY + +# create the repository +svnadmin create $REPOSITORY + +# checkout the empty repository +svn co file://$REPOSITORY svn-co + +# commit common trunk, branches and tags structure +cd svn-co +svn mkdir trunk +svn mkdir branches +svn mkdir tags +svn commit -m "initial subversion structure" + +# add a test file +echo "This is the content of fileA" > trunk/fileA +svn add trunk/fileA +svn commit -m "a simple first commit" + +cd .. + +# create the dump +svnadmin dump $REPOSITORY > svn-repository.dump + +# clean up +rm -rf svn-co +rm -rf svn-repository ============================================================ --- tests/importing_svn_one_revision_nodelta/svn-repository.dump e625825a0f0a0396b8e93e3d74d65d90db9ea770 +++ tests/importing_svn_one_revision_nodelta/svn-repository.dump e625825a0f0a0396b8e93e3d74d65d90db9ea770 @@ -0,0 +1,89 @@ +SVN-fs-dump-format-version: 2 + +UUID: 5599baa1-b2be-4c8f-a43f-bc098b7a7d1d + +Revision-number: 0 +Prop-content-length: 56 +Content-length: 56 + +K 8 +svn:date +V 27 +2007-04-17T17:47:27.358210Z +PROPS-END + +Revision-number: 1 +Prop-content-length: 129 +Content-length: 129 + +K 7 +svn:log +V 28 +initial subversion structure +K 10 +svn:author +V 6 +markus +K 8 +svn:date +V 27 +2007-04-17T17:47:28.310250Z +PROPS-END + +Node-path: branches +Node-kind: dir +Node-action: add +Prop-content-length: 10 +Content-length: 10 + +PROPS-END + + +Node-path: tags +Node-kind: dir +Node-action: add +Prop-content-length: 10 +Content-length: 10 + +PROPS-END + + +Node-path: trunk +Node-kind: dir +Node-action: add +Prop-content-length: 10 +Content-length: 10 + +PROPS-END + + +Revision-number: 2 +Prop-content-length: 122 +Content-length: 122 + +K 7 +svn:log +V 21 +a simple first commit +K 10 +svn:author +V 6 +markus +K 8 +svn:date +V 27 +2007-04-17T17:47:29.190979Z +PROPS-END + +Node-path: trunk/fileA +Node-kind: file +Node-action: add +Prop-content-length: 10 +Text-content-length: 29 +Text-content-md5: aa467f1ca567e01e8d26df6f40cc4fd8 +Content-length: 39 + +PROPS-END +This is the content of fileA + +