File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes CVS extra files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "CVS extra files" Watch "CVS extra files" New topic

CVS extra files

Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
When I use CVS I see that there are always extra files like "Entries", "Repository", and "Root". I've heard that there is a flag ('-R'?) that will prevent these files from appearing on my local drive, but I wonder if that would cause problems when I try to commit my changes.

Does SubVersion have extra files like this?

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33132

-R means to operate recursively, so that wouldn't be it. -r is to create a sticky version. That means you can't check in code against it (the version.) As far as I know it still creates those special files though.

If you were able to not create those files or ran a script to delete them, CVS wouldn't know where to check the files in again. I haven't tried it, but I suspect it wouldn't work.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Jeanne's spot on, those files are the heart and soul of CVS. Without them, it just won't work. I'm not sure how Subversion works in this regard.
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

Subversion creates similar files. The repository information has to go somewhere. The difference is that with svn, those files are in a directory named ".svn", starting with a dot. On UNIX-like systems, this is a hidden directory. I don't know about svn on Windows -- whether the directory is hidden or not.

[Jess in Action][AskingGoodQuestions]
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
Yes, the .svn directory on Win has the 'H' attribute set.

Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
Thank you for the info
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

I've been working with the subversion-based Apache Directory Project, and its Subversion files appear to be more intrusive than that, but maybe it's just an artifact of whatever the heck they think they're doing.

The way to get a copy of the CVS code without the CVS info attached is to use the CVS export command.

Of course, without the CVS info in it, there's no easy way to update CVS against the exported copy, but the purpose of CVS export is to ship stuff out to places that don't want/can't use those CVS files in their copy of the project.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: CVS extra files
jQuery in Action, 3rd edition