Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343024 - Pruned directories are not removed from CVS/Entries.
Summary: Pruned directories are not removed from CVS/Entries.
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: CVS (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: platform-cvs-inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-15 18:44 EDT by Jan Skarvall CLA
Modified: 2019-11-14 02:24 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Skarvall CLA 2011-04-15 18:44:32 EDT
When importing a project from CVS with pruning of empty directories, the CVS/Entries file lists also the pruned directories. This seem to differ from what happens when a cvs checkout -P is made, where the pruned directories are not included in the CVS/Entries file.

I stumbled upon this when trying to make a cvs status -vR aProject standing in the workspace directory, and getting a 'could not chdir to <a pruned directory>' error.

(I wanted to use the cvs status command in a script to check that aProject is properly tagged.)

See the example below, where aProject has been imported from CVS with pruning of directories:

[janne@janne workspace]$ cvs status -vR aProject
cvs status: Examining aProject/assets
cvs [status aborted]: could not chdir to assets: No such file or directory
[janne@janne workspace]$ cat aProject/CVS/Entries 
/.classpath/1.1/Wed Oct 27 20:37:54 2010//
/.project/1.2/Wed Nov 24 22:57:55 2010//
/AndroidManifest.xml/1.8/Sun Feb 27 19:26:59 2011//
D/assets////
D/bin////
/default.properties/1.3/Thu Jan 27 17:43:39 2011//
D/doc////
D/res////
D/src////
[janne@janne workspace]$ mkdir /tmp/checkoutbug
[janne@janne workspace]$ cd /tmp/checkoutbug
[janne@janne checkoutbug]$ cvs checkout -P aProject
cvs checkout: Updating aProject
U aProject/.classpath
U aProject/.project
U aProject/AndroidManifest.xml
U aProject/default.properties
:
:
U aProject/src/..../package-info.java
[janne@janne checkoutbug]$ cat aProject/CVS/Entries 
/.classpath/1.1/Wed Oct 27 20:37:54 2010//
/.project/1.2/Wed Nov 24 22:57:55 2010//
/AndroidManifest.xml/1.8/Sun Feb 27 19:26:59 2011//
/default.properties/1.3/Thu Jan 27 17:43:39 2011//
D/bin////
D/doc////
D/res////
D/src////
[janne@janne checkoutbug]$ cvs status -vR aProject
===================================================================
File: .classpath        Status: Up-to-date

   Working revision:    1.1     Wed Oct 27 20:37:54 2010
   Repository revision: 1.1     /var/cvs/aProject/.classpath,v
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      (none)

   Existing Tags:
        aProject_0-5                    (revision: 1.1)
        aProject_0-4                    (revision: 1.1)
        aProject_0-3                    (revision: 1.1)
        aProject_0_2                    (revision: 1.1)

===================================================================
:
:
[janne@janne checkoutbug]$
Comment 1 Lars Vogel CLA 2019-11-14 02:24:29 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.