aspose file tools*
The moose likes Linux / UNIX and the fly likes Directory commit in CVS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Directory commit in CVS" Watch "Directory commit in CVS" New topic
Author

Directory commit in CVS

Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2578

This must be simple, but somehow I am unable to do this...
I am using third paty code in my CVS hierarachy, the directory is called XYZ. Now I have replaced contents of this XYZ with newer version of the same products so there are many new diff directories, files etc. Now I want to commit this new XYZ folder contents to the CVS, how do I do this. It contains many subdirectories and files, so I do not want to do it individually. I use WinCVS client.
How do I do this? What other option do I have?
TIA,
- Manish
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
I never done this before, so I suggest you back up the cvs directory first.
I would first do a directory remove the old XYZ, and then do an add for the new directory even tho they have the same name. CVS doesn't keep track of directory history, so you'll lose history. But since you are using 3rd party code, do you need to keep track of that?
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
Regarding the subdirectories - you will have to 'add' those individually. Just the way CVS works with dirs, pain but a fact of life.
Once you have done that - for individual files - with WinCVS, select the project, click flatten, click non-cvs only, mass select, click add, them commit.
If it is 3rd party code that is binary only, I would just create a zip/jar of the whole mess and commit that only.
Regards, Guy
Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2578

I wish I could just commit the .jar file, but for some unknown reasons (unknown to me) we need to buld it from the source code itself.
- Manish
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Directory commit in CVS