bugConcurrent Versions System - Bugs: bug #15223, 'cvs log' confused by empty...


bug #15223: 'cvs log' confused by empty directory when that dir has Attic files

Submitted by:  None
Submitted on:  Thu 15 Dec 2005 04:19:57 PM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release: 
Fixed Release:  None Fixed Feature Release:  None

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 06 Apr 2007 11:34:11 PM UTC, comment #3:

Worked around in Hudson, FWIW:


Jesse Glick <jglick>
Fri 06 Apr 2007 05:41:01 PM UTC, comment #2:

I can reproduce using CVS 1.12.13. I found a workaround: do the logging with :fork: rather than local access method.

Jesse Glick <jglick>
Thu 15 Dec 2005 04:21:52 PM UTC, comment #1:

I entered this bug but forgot to log in.

Ed Avis <epaepa>
Thu 15 Dec 2005 04:19:57 PM UTC, original submission:

If the CVS repository has a directory that did contain some files but is now empty, that is, the files have been 'cvs remove'd, then if the working copy contains an empty directory of that name 'cvs add' gets upset. Here is how to reproduce:

# First make an empty CVS project, for completeness this is how:
mkdir $HOME/cvsroot
export CVSROOT=$HOME/cvsroot
mkdir scratch
cd scratch
cvs init
mkdir test
cd test
cvs import -m msg test test0 test1
cd ..
rmdir test
cvs checkout test
cd test

# Now we are in the working copy of the empty project.
# Add a directory, add a file in that directory, then remove it.
mkdir a
cvs add a
cd a
touch b
cvs add b
cvs commit -m msg
rm b
cvs remove b
cvs commit -m msg

# Now in our working copy the directory a/ is empty except for
# the CVS special files. We can remove it from the working copy
# and 'cvs update' will not put it back.
cd ..
rm -r a
cvs update
cvs log

# Here is the bug: if you then recreate the directory a/ then
# 'cvs log' gets upset. But this empty directory has no effect
# on 'cvs diff', for example, so it shouldn't affect 'cvs log'.
mkdir a
cvs log

Expected result: the same log output as if the directory a/
didn't exist. Or at least, some reasonable warning of what is
happening and 'cvs log' continues to write a log.

Actual result: got the error message
cvs log: in directory `a':
cvs [log aborted]: there is no version here; do `cvs checkout' first



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jglick (Posted a comment)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2005-12-15 epaepa Carbon-Copy- => Added -email is unavailable-

    Back to the top

    Powered by Savane 3.3