[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How can I add a number of files scattered over the directory tree?

From: Alan Barrett <apb_at_cequrux.com>
Date: 2006-10-27 22:09:19 CEST

On Fri, 27 Oct 2006, Les Mikesell wrote:
> > > Has anyone come up with a scheme to treat /etc from a set of
> > > similar machines as branches?
> >
> > I just use ${REPO}/hosts/${hostname}/${dirname} for that. (Not
> > using the conventional {trunk,tags,branches} layout.)
>
> But does subversion know the ancestry so you can see if some change
> was made on host1 before it was duplicated to host2 or afterwords?

I haven't done that (log message comments have been enough so far), but
I suppose you could use svnmerge.py to merge between the host branches
(but try to make one the "master" so you don't have too many merges in
too many directions), or use mucc to copy stuff between host branches.

> Can you tell it to make a file or directory on host3 identical to the
> corresponding one on host2?

file=etc/fstab
source=${REPO}/hosts/host2 rev=123
target=${REPO}/hosts/host3
mucc \
    rm ${target}/${file} \
    cp ${rev} ${source}/${file} ${target}/${file}

--apb (Alan Barrett)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Oct 27 22:10:21 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.