Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CVS problem : can't commit  RSS feed

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to CVS in Eclipse 3.0.2, CVS server is CVSNT, OS is windows NT 2000 advanced server. but it gave me lots of questions.

1. I create a new folder, I want to add it into CVS server, what should I do? I can't commit, it said "CVS server doesn't have this folder".

2. Sometimes, I found a weird situation, one file in server is 1.1 and empty. my file is 1.2 and has content. But when I synchronize, it said no any change, and I commit it, but server is same, that file still is empty.

Thanks in advace.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37381
531
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edward,
For #1, you need to call "cvs add" first to tell CVS about the file. Then you can do "cvs commit" to commit it.
 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, Jeanne.

I click "team", I didn't find "cvs add" command in Eclipse. "cvs add" will match which menu ?

Thanks.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37381
531
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edward,
I missed that you were using Eclipse. My answer was for command line CVS. (You did say it clearly, I just missed it.)

In Eclipse, make sure you "synchronize with stream" rather than "commit" the first time. Synchronize with stream is like the "add" command I was talking about.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!