Find the answer to your Linux question:
Results 1 to 2 of 2
I am new to setting up cvs repository's I have downloaded cvs-1-11-22.zip unzipped it made a directory for the cvsroot to go into called cvssrc mkdir cvssvr set cvsroot=PATH\cvssrc cvs ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    96

    cvs repo?


    I am new to setting up cvs repository's
    I have downloaded cvs-1-11-22.zip unzipped it
    made a directory for the cvsroot to go into called cvssrc
    mkdir cvssvr
    set cvsroot=PATH\cvssrc
    cvs init (which created the below files/dir's)

    Code:
    09/06/2011  01:43 PM    <DIR>          .
    09/06/2011  01:43 PM    <DIR>          ..
    09/06/2011  01:19 PM               508 .#checkoutlist
    09/06/2011  01:19 PM               775 .#commitinfo
    09/06/2011  01:19 PM             1,015 .#config
    09/06/2011  01:19 PM               621 .#cvswrappers
    09/06/2011  01:19 PM             1,046 .#editinfo
    09/06/2011  01:19 PM             1,167 .#loginfo
    09/06/2011  01:19 PM             1,177 .#modules
    09/06/2011  01:19 PM               576 .#notify
    09/06/2011  01:19 PM               662 .#rcsinfo
    09/06/2011  01:19 PM               899 .#taginfo
    09/06/2011  01:19 PM             1,047 .#verifymsg
    09/06/2011  01:23 PM               514 checkoutlist
    09/06/2011  01:04 PM               695 checkoutlist,v
    09/06/2011  01:21 PM               775 commitinfo
    09/06/2011  01:04 PM               960 commitinfo,v
    09/06/2011  01:21 PM             1,015 config
    09/06/2011  01:04 PM             1,193 config,v
    09/06/2011  01:21 PM               621 cvswrappers
    09/06/2011  01:04 PM               802 cvswrappers,v
    09/06/2011  01:21 PM             1,046 editinfo
    09/06/2011  01:04 PM             1,225 editinfo,v
    09/06/2011  01:45 PM    <DIR>          Emptydir
    09/06/2011  01:43 PM               300 history
    09/06/2011  01:21 PM             1,167 loginfo
    09/06/2011  01:04 PM             1,341 loginfo,v
    09/06/2011  01:21 PM             1,177 modules
    09/06/2011  01:04 PM             1,351 modules,v
    09/06/2011  01:21 PM               576 notify
    09/06/2011  01:04 PM               764 notify,v
    09/06/2011  01:21 PM               662 rcsinfo
    09/06/2011  01:04 PM               849 rcsinfo,v
    09/06/2011  01:21 PM               899 taginfo
    09/06/2011  01:04 PM             1,079 taginfo,v
    09/06/2011  01:04 PM                 0 val-tags
    09/06/2011  01:21 PM             1,047 verifymsg
    09/06/2011  01:04 PM             1,226 verifymsg,v
    then I issued
    cvs checkout cvsroot/Emptydir
    And got all my files in the repo checkout and put into a cvsroot folder in my current directory.

    Now I am trying to create files and folders and check them in
    so I do cvs commit mynewfileorfolder
    Which I get
    Code:
    cvs commit: cannot open CVS/Entries for reading: No such file or directory
    cvs commit: nothing known about `mynewfileorfolder'
    cvs [commit aborted]: correct above errors first!
    My main questions are how do you commit a new file to a specific place in the cvs repo.
    And is their away to checkout files and folders into a different place then where you are executing the current cvs command.
    (i.e files and folders go into a different directory then the current working directory you issued the cvs command in just wondering if their is a switch or if you must switch to the directory you want the files in first ?)

  2. #2
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    630
    In CVS, new files and/or directories need an "add" step before they can be "commited"
    Code:
    cvs add mynewfileorfolder
    Then they can be commited
    Code:
    cvs commit mynewfileorfolder

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •