You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by William Ferguson <wi...@hubbub.com.au> on 2005/04/11 01:17:52 UTC

Checking out a single file

I have a Java client with which I'd like to be able to create a working copy
by checking out files on a case by case basis instead of checking out an
entire module. But it doesn't seem that either command line SVN or the
Javahl interface provides such a mechanism.

Is a single file checkout even remotely possible?
What changes to SVN might be required to make it so?
Is it likely to be a reasonably simple implementation of another checkout
method in Javahl? Or is it likely to require major surgery?

Just to provide some perspective (as I may be tackling this entirely the
wrong way), this is what I'm attempting:
A WebDAV Servlet that can run on any WebServer (initial target is Weblogic)
that is backed by a SubVersion repository.
I don't have the option of using Apache 2.0 and mod_dav_svn.

Also, I've had a look at JavaSVN, but it seems bound by the SVN constraints
of checkout of an entire module.

William

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Checking out a single file

Posted by Toby Johnson <to...@etjohnson.us>.
William Ferguson wrote:

>Is a single file checkout even remotely possible?
>What changes to SVN might be required to make it so?
>Is it likely to be a reasonably simple implementation of another checkout
>method in Javahl? Or is it likely to require major surgery?
>  
>
No, it's just not possible. The entire Subversion library is built 
around the concept of local working copies with .svn directories storing 
admin info about those working copies. This isn't possible with single 
files. You can "svn cat" a single file, which will give you the contents 
of that file.

>Just to provide some perspective (as I may be tackling this entirely the
>wrong way), this is what I'm attempting:
>A WebDAV Servlet that can run on any WebServer (initial target is Weblogic)
>that is backed by a SubVersion repository.
>  
>
So you want to write another DAV servlet using only Java? This should be 
technically possible; I don't see why you would need to checkout 
anything in order to serve up files over DAV as well as provide some 
sort of autoversioning capability. I'd imagine, though, that you'd want 
to use the Repository Access layer in order to accomplish this.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org