[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: export or checkout of alias modules where the first item in the list
From: |
Mark D. Baushke |
Subject: |
Re: export or checkout of alias modules where the first item in the list is an empty directory |
Date: |
Wed, 24 Nov 2004 10:38:48 -0800 |
I doubt if I will have time to work on this bug over the United States
holiday weekend.
Have a good Thanksgiving,
-- Mark
ChangeLog:
* sanity.sh (modules7): New test to demonstrate export bug.
(Reported by Richard_Verhoeven@WestLB.de)
Index: sanity.sh
===================================================================
RCS file: /cvs/ccvs/src/sanity.sh,v
retrieving revision 1.752.2.158
diff -u -p -u -p -r1.752.2.158 sanity.sh
--- sanity.sh 19 Nov 2004 07:23:57 -0000 1.752.2.158
+++ sanity.sh 24 Nov 2004 18:33:22 -0000
@@ -12705,6 +12705,78 @@ ${PROG} commit: Rebuilding administrativ
fi
;;
+
+
+ modules7)
+ #
+ # Test tag problems vs an empty CVSROOT/val-tags file
+ #
+ # See the header comment for the `modules' test for an index of
+ # the complete suite of modules tests.
+ #
+ mkdir modules7
+ cd modules7
+ dotest modules7-1 "${testcvs} -Q co -d top ." ''
+ cd top
+ mkdir zero one
+ dotest modules7-2 "${testcvs} -Q add zero one" ''
+ cd one
+ echo 'file1 contents' > file1
+ dotest modules7-2 "${testcvs} -Q add file1" ''
+ dotest modules7-3 "${testcvs} -Q ci -mnew file1" \
+"RCS file: ${CVSROOT_DIRNAME}/one/file1,v
+done
+Checking in file1;
+${CVSROOT_DIRNAME}/one/file1,v <-- file1
+initial revision: 1\.1
+done"
+ dotest modules7-4 "${testcvs} -Q tag mytag file1" ''
+ cd ../CVSROOT
+ echo 'all -a zero one' > modules
+ dotest modules7-5 "${testcvs} -Q ci -mall-module" \
+"Checking in modules;
+${CVSROOT_DIRNAME}/CVSROOT/modules,v <-- modules
+new revision: [0-9.]*; previous revision: [0-9.]*
+done
+${PROG} commit: Rebuilding administrative file database"
+ cd ../..
+ mkdir myexport
+ cd myexport
+ # FIXCVS: The export should NOT be aborted here
+ dotest_fail modules7-6 "${testcvs} export -rmytag all" \
+"${PROG} \[export aborted\]: no such tag mytag"
+ cd ..
+ rm -fr myexport
+ mkdir myexport
+ cd myexport
+ # FIXCVS: Workaround is to have mytag listed in val-tags
+ echo 'mytag y' > ${CVSROOT_DIRNAME}/CVSROOT/val-tags
+ dotest modules7-7 "${testcvs} export -rmytag all" \
+"${PROG} export: Updating zero
+${PROG} export: Updating one
+U one/file1"
+ dotest modules7-8 'cat one/file1' 'file1 contents'
+
+ if $keep; then
+ echo Keeping ${TESTDIR} and exiting due to --keep
+ exit 0
+ fi
+
+ # cleanup
+ cd ../top/CVSROOT
+ echo "# empty modules file" >modules
+ dotest modules7-cleanup-1 "${testcvs} -Q ci -mempty-modules" \
+"Checking in modules;
+${CVSROOT_DIRNAME}/CVSROOT/modules,v <-- modules
+new revision: [0-9.]*; previous revision: [0-9.]*
+done
+${PROG} commit: Rebuilding administrative file database"
+ cd ../../..
+ rm -fr modules7
+ rm -rf ${CVSROOT_DIRNAME}/zero ${CVSROOT_DIRNAME}/one
+ ;;
+
+
mkmodules)
# When a file listed in checkoutlist doesn't exist, cvs-1.10.4
# would fail to remove the CVSROOT/.#[0-9]* temporary file it