Jump to content

Having trouble with revision control in CVS

- - - - -

  • Please log in to reply
No replies to this topic

#1
DarkLordofthePenguins

DarkLordofthePenguins

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 409 posts
I have read the HTML docs on CVS in /usr/share/doc on my computer and followed the instructions for setting up CVS and importing code. I have managed to create the CVS repository and (I think) import a project.

My command history looks like this:


$ cvs -d /usr/local/cvsroot init

$ cd /usr/local/cvsroot

$ ls

CVSROOT

$ cd ~/Programming/wumpus

$ cvs import -m "Imported sources" wumpus wump start

cvs import: cannot make path to /usr/local/cvsroot/wumpus: Permission denied

cvs import: failed to create lock directory for `/usr/local/cvsroot/wumpus' (/usr/local/cvsroot/wumpus/#cvs.lock): No such file or directory

cvs [import aborted]: failed to obtain write lock in repository `/usr/local/cvsroot/wumpus'

$ su root

# mkdir /usr/local/cvsroot/wumpus

# cd /home/myname/Programming/wumpus

# cvs import -m "Imported sources" wumpus wump start

N wumpus/setup.c

N wumpus/io.c

N wumpus/wumpus

I wumpus/wumpus.o

N wumpus/wumpus.c

N wumpus/misc.c

I wumpus/misc.o

N wumpus/game.h

N wumpus/.misc.c.swp

N wumpus/a.out

N wumpus/wumpus.h

I wumpus/setup.o

I wumpus/io.o

N wumpus/.setup.c.swp


No conflicts created by this import


# cd /home/myname/Programming

# cvs release wumpus

cvs release: no repository directory: wumpus

# cd wumpus

# vi wumpus.c (I did some editing, then quit)

# cvs commit -m "Added comment" wumpus.c

cvs commit: cannot open CVS/Entries for reading: No such file or directory

cvs commit: nothing known about `wumpus.c'

cvs [commit aborted]: correct above errors first!


So essentially, I created the repository for wumpus in /usr/local/cvsroot/wumpus, but it wouldn't let me release or checkout, because it said the repository file doesn't exist.

I followed all the steps in the tutorial. What exactly am I doing wrong here?
Programming is a journey, not a destination.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users