aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes CVS : not allow me to commit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "CVS : not allow me to commit" Watch "CVS : not allow me to commit" New topic
Author

CVS : not allow me to commit

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
I am newbie to CVS,

1. when I synchronize one folder , it will show some outgoing changes in Sysnchrionze Window. So I commit it, but it show error like this



It not allow me to commit! Then I compare these two files, I didn't see any difference. But why the Eclipse CVS see difference when it syschronizes ? How could I work out ?

2. My project is huge, 300MB. I check out project . After ant task, it will generate class file. So Eclipse CVS see this difference. But actually, this class file difference doesn't need to commmit to remote CVS server. How could I avoid this , because jar , war, class file will take a long time to commit for a 300 MB project .

Thanks in advance.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Derived files (JARs, WARs) shouldn't be checked into CVS in the first place. Neither should .class files. All of these files should be removed from the repository. Eclipse normally puts them in a "bin" directory, and that whole directory shouldn't be in the repository.

Regarding the invisible update problem: it may be a difference in line endings (i.e., UNIX \n vs. Windows \r\n) which is not being handled as it should be, or it may just be indentation or spacing changes. In any case, normally you should ALWAYS do an update before a commit, resolve any conflicts, and run all your tests, before checking anything in -- otherwise the repository may contain broken code, which is obviously bad.


[Jess in Action][AskingGoodQuestions]
Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
Thanks. I always learn something from your instant reply.

Edward
 
wood burning stoves
 
subject: CVS : not allow me to commit