LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-16-2014, 09:37 PM   #1
user9876
LQ Newbie
 
Registered: Nov 2013
Posts: 3

Rep: Reputation: Disabled
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.
 
Old 05-28-2014, 10:06 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
question on snapshots mortal *BSD 1 08-23-2007 06:54 PM
CVS Newby question: how to do "svn revert filename" with CVS? ve.ru Linux - Software 3 01-28-2007 01:57 PM
CVS/Open Source for a beginner gtzpower Programming 1 06-08-2005 01:49 PM
cron.daily question ralvy Slackware 6 12-09-2004 11:55 PM
CVS Beginner gold5angel Linux - Newbie 2 03-22-2004 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration