[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Assert error checking out tagged files with -p option
From: |
Abhinandan Jain |
Subject: |
Assert error checking out tagged files with -p option |
Date: |
Wed, 16 Jun 2004 18:37:13 -0700 |
User-agent: |
Mutt/1.4.2.1i |
I am using cvs 1.11.17 and am getting assert errors when using the "-pr"
tagged checkout option for a freshly tagged file. That is, if I
1) tag a file A with tag B
2) right away checkout the file using "-pr B", I get an assert error of the
form
Assertion failed: repository != NULL, file ../../src/recurse.c, line 641
cvs [checkout aborted]: received abort signal
3) If however I checkout the file without the -p option, i.e. using
simply "-r B", things work, and strangely enough, after this the
"-pr B" option also starts working.
Unforutnately, if I now use a new tag "C", I get exactly the same
problem going from step 1-3 with this new tag. So it appears that this
version of CVS requires at least one checkout to the file system using a
new tag before the tag can be used with the "-p" option.
This beharior is causing quite a few problems in our environment.
I have included a short test case below which reproduces the problem:
# create a new repository
cvs -d /home/jain/tempRepo init
# import a single file "tmpfile" into the repository
mkdir tmpdir
touch tmpdir/tmpfile
cd tmpdir
cvs -d /home/jain/tempRepo import -m "" tmpmod ddd ggg
# checkout "tmpfile" and tag it with the "tmptag" tag
cvs -d /home/jain/tempRepo co tmpmod
cvs -d /home/jain/tempRepo tag tmptag tmpmod/tmpfile
# try to checkout tmpfile with the -p -r tmptag options
cvs -d /home/jain/tempRepo co -P -p -r tmptag tmpmod/tmpfile
This results in the error message:
Assertion failed: repository != NULL, file ../../src/recurse.c, line 641
cvs [checkout aborted]: received abort signal
# try to checkout tmpfile with the "-r tmptag" option (no -p option)
cvs -d /home/jain/tempRepo co -P -r tmptag tmpmod/tmpfile
WORKS! Checks out tmpfile to the file system.
# try the -p -r tmptag option again
cvs -d /home/jain/tempRepo co -P -p -r tmptag tmpmod/tmpfile
WORKS!! No more problems using -pr option with the tmptag tag.
Thanks in advance for any help.
Abhi
- Assert error checking out tagged files with -p option,
Abhinandan Jain <=