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

Re: Does SubVersion allows to share a file/revision among multiple paths ?

From: Toby Johnson <toby_at_etjohnson.us>
Date: 2004-07-15 19:49:05 CEST

Olivier Mascia wrote:

>Wouldn't it be conceptually simpler using an export from repository to
>shadow folder than an update? It wouldn't require the initial checkout
>as I understand.
>
It just depends on which one suits you better. The benefit of having the
shadow folder being a working copy rather than an exported directory is
that the server would only need to send deltas after each commit, rather
than the entire directory. If you want to "shadow" your entire
repository, that's definitely a concern.

If using export, you would also need to delete the entire shadow
directory before re-exporting it each time, which of course would cause
problems if someone was currently visiting part of the shadow directory
in a DOS prompt or was otherwise holding a lock on any file or directory
within it.

Of course, since the post-commit hook receives the new revision number
as one of its parameters, you could always have it do "svn diff" against
the repository and then apply that diff to your shadow folder, thereby
removing the need to delete it beforehand. But if you're looking for
"conceptually simpler", that's definitely not the way to go. :)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 15 19:49:31 2004

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