LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CVS daily snapshots (beginner's question) (https://www.linuxquestions.org/questions/linux-newbie-8/cvs-daily-snapshots-beginners-question-4175505265/)

user9876 05-16-2014 08:37 PM

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.

dijetlo 05-28-2014 09:06 PM

From the directory containing the working copy
Quote:

/home/user/workspace$ cvs tag -R v16_05_14 Myprog
You began a base version here, think of it as the trunk.
Quote:

/home/user/workspace$ cvs tag -b v16_05_15 Myprog
That's a branch from the trunk.

Take a look at this explanation, it's very well done.


All times are GMT -5. The time now is 08:00 PM.