Re: Frustrated with CVS simple commands

"himanshgoyal" <[email protected]> Thu, 03 Sep 2009 09:26:24 -0000
Newsgroups gmane.comp.version-control.cvs.gui.user
Message-ID <[email protected]>
--- In [email protected], "psumares" <paulsumares@...> wrote:
>
> CVS makes no sense to me.
> 
> According to this documentation: http://www.wincvs.org/howto/cvsdoc/index.html ... you can only impoty a large set of source files as a module, then you can checkout files from that to work on.
> 
> It explains no way to simply add a file to an existing module that you have already checked out! This is ridiculous.
> 
> For example:
> 
> I already checked out an entire module I imported, called "Module".
> 
> Under "Module" I created a folder called "build" and inside a new file, "build.xml".
> 
> If a simply try to add this file, I get
> 
> cvs -d :local:/Users/Administrator/Repos/CVS add build.xml (in directory C:\EC Dev\Module\build)
> cvs add: in directory .:
> cvs [add aborted]: there is no version here; do 'cvs checkout' first
> 
> ***** CVS exited normally with code 1 *****
> 
> Of course there's no version number, I haven't added it to the repository yet, stupid CVS, that's what I'm trying to do now!
> 
> WHy won't it let me add this file to the repository, after which it will give it a version, and then let me checkout that version? Why does CVS makes this so unintuitive?
> 
> Arghh!
> 
> Thanks for letting me vent. Anyone have any answers for me.
> 
> Paul
>


Hi Paul,
If module is already created, please checkout the module or part of it where file has to be added and execute below commands:

cd dirname
(go to location where files have to be added up in module directory structure; make sure file to be added is copied/present here)
cvs add filename1
cvs commit -m "message1 message 2" filename1

=== done ===



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/cvsgui/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/cvsgui/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/