Multiple CVS Servers for Web Development (SOLVED)
Tsagatakis Giannis
hwlab at cs.teiher.gr
Thu Dec 13 13:41:01 EET 2001
Yannis Kotsinos wrote:
> pulic person TsagatakisGiannis extends local.linux.greek.users {
>
> loipon ta afhnw ola quoted gia osoys tyxwn endiaferontai. To
> replication edw einai gia xarh enos (indeed) prwtotypoy gia ta
> dedomena mas solved :-)
>
> // Xaireto.
> // Aytes tis meres prospatho na kano to eksis gia ene dinamiko site :
> //
> // ------------- -------------- commit
> // | CVS SERVER | ------> | Development PC | <----->
> // ------------- update -------------- update
> //
> //
> // ______________ ------------
> // <-----> | My CVS Server | -------> | FINAL SITE |
> // ------------ update ------------
> //
> // Diladi epeidi kano allages, thelo
> // o Na kratao tis allages pu kano ke na meno enimeromenos me
> // tin eksiliksi tu project
> // o Na mporo na epistrefo se opoiadipote custom ekdosi piso
> // (tora to kano me .tgz ke scriptakia)
> // o Na emimerono ton server me tis allages (eine poli prama gia ftp)
> // o Kapoia arxeia rithmiseon na eine ektos CVS
> //
> // Mesa se kathe catalgo eiparxei to directory CVS pu krataei ton
> // server ke ta arxeia. Edo o katalogos anikei se dio CVS servers.
> // Isos voithisei to oti o development kanei usiastika mono update apo
> // CVS_SERVER kai (sxedon mono) commit ston My_SCS_SERVER.
> //
> // Eine dinaton na ginei kati tetoio?
> // To exei kanei kapois ?
> // Any hints?
>
> Oti akoloy8ei egine post apo ton Giorgo Keramida stis 11/11/2001 me
> subject "I fucking love CVS" ws antidrash sto /etc/resolv.conf ama
> 8ymaste...
>
> Egw to mono poy exw na pros8esw einai oti se opoiodhpote module 8eleis
> na kaneis rollback se kapoia palia hmeromhnia mporeis na
> xrhsimopoihseis to -D (date switch - prosoxh sta locale) otan kaneis
> export to repository soy.
>
> ----[ begin quote ]-------------------------
>
> Ok, gia na kanoume local changes se ena repository, to CVS einai apla
> theiko :) Prwta, kanoume ena export apo to original repository:
>
> % cd /d/local
> % cvs -q -R -d /home/ncvs export -r HEAD modulename
>
> Ustera, ftiaxnoume ena local repository me mono ta checked out
> sources, apo to original:
>
> % cd modulename
> % mkdir /d/cvs
> % cvs -d /d/cvs init
> % cvs -d /d/cvs import -ko modulename FREEBSD FREEBSD_DOCS
>
> To option -ko leei sto import na min kanei expand ta $RCS$ keywords,
> opote kratiountai ta original (se periptosh pou theloume na kanoume
> merge argotera ta remote changes).
>
> Bgainoume kai kanoume checkout apo to local pleon repository ta panta:
>
> % cd /d/local
> % rm -fr modulename
> % cvs -q -d /d/cvs checkout -r HEAD modulename
>
> Ftiaxnoume ena ``tag'' pou markarei ta revisions akribws PRIN ginei
> opoiadhpote local allagh:
>
> % cd /d/local/modulename
> % cvs tag -f PRE_CHANGE
>
> Ftiaxnoume ena local ``branch'' me onoma CHANGE (mporei na exoume sto
> idio local repository polla parallhla branches me local allages, opote
> kalo einai to kathena na einai se jexoristo diko tou branch na trexei,
> gia na min anakateuontai oi allages kai ginei to MPAXALO).
>
> % cvs tag -b CHANGE
>
> To onoma PRE_CHANGE kai to onoma tou branch kalo einai na einai idia,
> opote na jeroume poio PRE_XXX antistoixei se poio XXX branch argotera.
>
> Gurizoume ta sources apo to HEAD branch tou local repository sto
> CHANGE branch, wste ola ta commit na ginoun sto katallhlo branch
> argotera otan mas piasei orejh gia douleia:
>
> % cd /d/local/modulename
> % cvs -q up -APd -r CHANGE
>
> Kanoume oti allages theloume:
>
> % vi `find . -type f`
>
> Kanoume commit tis allages mas (sto local repository) ...
>
> Kai sto telos, pairnoume tis local allages tou XXX branch me:
>
> % cd /d/local/modulename
> % cvs -q dif -2u -r PRE_CHANGE -r CHANGE > big-fucking-diff
>
> Mia omorfia den einai? :)))
>
> ----[ end quote ]-------------------------
> }
>
> --
> Seen on google:
> "Who is BSD and why should we free him???"
Telika, sto xthesino ksenikti vrika sto manual tu CVS ena kefalaio me titlo
"Third party sources" . Omologo oti den epsaksa prin sta archives :-).
Gia tis anagkes mu katleksa se mia lisi me ena scriptaki pu kanei copy ta
files pu thelo mono se ena allo directory, ke apo ekei ta stelno ston diko
mu CVS server, ke etsi exo ena versioning pu voleyei emena. Mpakaloduleia
alla me kaliptei.
Se eyxaristo gia tin apantisi. Ali fora tha psaxno kalitera sta archives.
--
Tsagatakis Giannis
To be, or not to be, is true
More information about the Linux-greek-users
mailing list