This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "CVS extra files" Watch "CVS extra files" New topic
Author

CVS extra files

Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
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?


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

Joined: May 26, 2003
Posts: 30352
    
150

Marilyn,
-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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41571
    
  54
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.


Ping & DNS - my free Android networking tools app
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

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.

Guy
Marilyn de Queiroz
Sheriff

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

Joined: Jun 25, 2001
Posts: 16019
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CVS extra files