CVS daily snapshots (beginner's question)
Hello everybody,
I'm trying to master CVS and need some help. I'm writing a program and want to make daily snapshots to a local CVS repository. Unfortunately, all CVS tutorials I could find on the web don't answer all my questions. The main question is, from which directory I have to type this or that command. Assume that:
CVSROOT=/home/user/CVS
source directory = /home/user/workspace/Myprog
My algorhythm is:
1. After the long day&night of coding I tag the latest revision:
/home/user/workspace$ cvs tag -R v16_05_14 Myprog
Shell output:
cvs tag: Tagging Myprog
T Myprog/some_file
T Myprog/another_file
...
2. Now I try to port the revision to the CVSROOT repository:
/home/user/workspace$ cvs commit -R v16_05_14 Myprog
Shell output:
cvs commit: cannot open CVS/Entries for reading: No such file or directory
cvs commit: nothing known about `v16_05_14'
cvs commit: Examining Myprog
cvs commit: sticky tag `v23_04_14' for file `Myprog/some_file' is not a branch
cvs [commit aborted]: correct above errors first!
What's wrong with that, should I do it another way or type these commands from another directory? Just some questions from a total newbie!
P.S. Recommendation how to do the same thing in SVN/Mercurial/Git/Fossil/Bazaar/you_name_it.. are welcome too, as my plans are to master more sophisticated version control tools than CVS as well.
|