# # # add_dir "tests/importing_cvs_files_charset" # # add_dir "tests/importing_cvs_files_charset/cvs-repository" # # add_dir "tests/importing_cvs_files_charset/cvs-repository/test" # # add_file "tests/importing_cvs_files_charset/__driver__.lua" # content [aefdf3f1aa3827f8d44b56a6b9c636b79fe9c668] # # add_file "tests/importing_cvs_files_charset/cvs-repository/test/foo,v" # content [993519691e6bb7ff95c00c10c237f4347038bc75] # # add_file "tests/importing_cvs_files_charset/makerepo.sh" # content [84aaa9928ec821e5cf19ce5472367a8edbbda49e] # # set "tests/importing_cvs_files_charset/makerepo.sh" # attr "mtn:execute" # value "true" # ============================================================ --- tests/importing_cvs_files_charset/__driver__.lua aefdf3f1aa3827f8d44b56a6b9c636b79fe9c668 +++ tests/importing_cvs_files_charset/__driver__.lua aefdf3f1aa3827f8d44b56a6b9c636b79fe9c668 @@ -0,0 +1,17 @@ + +mtn_setup() + +-- See makerepo.sh on how this repository was created. +check(get("cvs-repository")) + +-- copy to filenames with invalid characters +copy("cvs-repository/test/foo,v", + "cvs-repository/test/foo_\\,v") + +copy("cvs-repository/test/foo,v", + "cvs-repository/test/foo_ö,v") + + +-- import into monotone and check presence of files +xfail(mtn("--branch=testbranch", "cvs_import", "cvs-repository/test"), 0, false, false) + ============================================================ --- tests/importing_cvs_files_charset/cvs-repository/test/foo,v 993519691e6bb7ff95c00c10c237f4347038bc75 +++ tests/importing_cvs_files_charset/cvs-repository/test/foo,v 993519691e6bb7ff95c00c10c237f4347038bc75 @@ -0,0 +1,25 @@ +head 1.1; +access; +symbols; +locks; strict; +comment @# @; + + +1.1 +date 2007.11.07.18.10.43; author markus; state Exp; +branches; +next ; +commitid X5fYNoONlY7lGFEs; + + +desc +@@ + + +1.1 +log address@hidden files with strange names +@ +text address@hidden +@ ============================================================ --- tests/importing_cvs_files_charset/makerepo.sh 84aaa9928ec821e5cf19ce5472367a8edbbda49e +++ tests/importing_cvs_files_charset/makerepo.sh 84aaa9928ec821e5cf19ce5472367a8edbbda49e @@ -0,0 +1,29 @@ +#!/bin/sh + +CVSROOT=`pwd`/cvs-repository +export CVSROOT + +# deleting the existing cvs-repository +rm -vrf $CVSROOT + +# initializing a new repository +cvs init + +# do a full checkout of the repository +mkdir full_checkout +cd full_checkout +cvs co . +mkdir test +cvs add test + +# add some files +echo "foo" > test/foo +cvs add test/foo +cvs commit -m "committing files with strange names" test/foo + +cd .. +rm -rf full_checkout + +# clean up the CVS repository bookkeeping dir +rm -rf cvs-repository/CVSROOT +