LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   setting up a Live CVS ideas (http://www.linuxquestions.org/questions/linux-software-2/setting-up-a-live-cvs-ideas-273597/)

mancini 01-04-2005 04:40 AM

setting up a Live CVS ideas
 
hey i am looking for advices and ideeas on setting up a Live CVS
what i mean by a live cvs , well , have all the latest versions of the files under the cvs automatically updated on another dir of the harddrive , namely /var/www/htdocs/ every time a cvs user makes a addition to a file under the cvs

so for starters , is this even posible ?

mancini 01-04-2005 10:47 AM

please don't confuse this with setting up a web based cvs reader like ViewCVS

mancini 01-05-2005 02:46 AM

well does anyone has any clue ?

hw-tph 01-05-2005 03:21 AM

Sounds like fun, but I don't know of a sure-fire way to do it. One way could possibly be by using the loginfo feature. Replace the mailer or cvs-log script in the examples with a custom mirroring script, perhaps?

Anyways, just an idea. :)

Håkan

mancini 01-05-2005 11:28 AM

big thanks for the info , i played with it a bit but i struck a big problem
only 3 pieces of infromation can be passed on using that and the contents for the file is not one of them , namely :
s = file name
V = old version number (pre-checkin)
v = new version number (post-checkin)

am i missing something , or you were refering to this to be used only as a trigger ?

mancini 01-06-2005 08:44 AM

it seems there is http://www.cvshome.org/docs/manual/c...18.html#SEC173

Code:

^cyclic-pages      (date; cat; (sleep 2; cd /u/www/local-docs;
 cvs -q update -d) &) >> $CVSROOT/CVSROOT/updatelog 2>&1



All times are GMT -5. The time now is 11:42 AM.