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

Re: cadaver+expect+wget = svn co

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2002-12-06 03:02:18 CET

"Craig Peterein" <craig@peterein.org> writes:

> Someone a while back wanted to wget from an svn repository. But you
> can't just grab the regular url, since someone may commit in the
> middle.

It's very cool that you wrote this script! It's nice to be able to
get an arbitrary revision of a file using wget. You should add a
"revnum" argument to the script.

But your explanation above isn't quite right.

If I do a GET on a public url, mod_dav_svn immediately figures out the
youngest revision, and then sends back the text of the file at that
particular revision. If somebody commits a new revision during the
data transfer, it doesn't mean a thing. You still finish fetching a
particular (rev, path) coordinate pair from the repository.

The only "race" condition here is the race between mod_dav_svn doing a
single db lookup of the HEAD revnum, and somebody committing a new
HEAD. Once mod_dav_svn has a specific revnum, it stays with it.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Dec 6 03:04:57 2002

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