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

Re: Checkin without working copy

From: Dirk Hoffmann <dh.discuss_at_web.de>
Date: 2004-08-31 11:53:11 CEST

Max Bowsher wrote:

> Dirk Hoffmann wrote:
>
>> Max Bowsher wrote:
>>
>>> Dirk Hoffmann wrote:
>>> ...
>>>
>>>> One java program copies files into the repository another one
>>>> retrieves
>>>> the files from the repository (simplified version). I'm using the
>>>> javahl-binding as a bridge from java to subversion.
>>>
>>>
>>> ...
>>>
>>>> What I don't need are working copies as no user has direct access
>>>> to the
>>>> repository and no editing takes place on local copies.
>>>
>>>
>>> ...
>>>
>>>> But things are getting complicated when a new version of an already
>>>> existing file needs to be put into the directory which is the most
>>>> frequent use case.
>>>>
>>>> At the moment this is my receipt to achieve that:
>>>>
>>>> 1. Checkout the file's parent directory into a temporary working copy.
>>>> 2. Copy the new version of the file into the working copy overwriting
>>>> the previous version
>>>> 3. Commit change providing a log message
>>>> 4. For administrative reasons get the number of the head revision.
>>>>
>>>> Doing so has the disadvantage of checking out not only single files
>>>> but
>>>> entire directories. There is also a big overhead for creating the
>>>> working copy's directory structure.
>>>
>>>
>>> ...
>>>
>>>> If there was a way to copy new versions of files into the repository
>>>> without needing a working copy subversions range of use cases would be
>>>> much broader.
>>>
>>>
>>>
>>> There is. But not with the java bindings or svn command line client.
>>>
>>> You would need to either enhance the java bindings, or write an
>>> external program (in C, python or perl) and run that.
>>>
>>> Max.
>>
>>
>> Oh really.
>>
>> Could you (or someone else) please give me a hint, which API to use.
>>
>> I thought it was impossible as I can't see any C-function in
>> libsvn_client that provides the needed functionality.
>
>
> That's because libsvn_client implements a WC-based client.
>
> You would need to look to libsvn_ra to break free from WCs.
>
> Max.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
Hm,

I looked at several files in the 'include' dir particularly at
`svn_ra.h' and also at files under `libsvn_ra' and `libsvn_ra_dav' but
couldn't find there any appropriate stuff. There were a lot of function
declarations dealing with properties and also `get_file()' and
`get_dir()', but no equivalent for "put_file()".

Also the docs, say nothing about how to checkin a file without a working
copy.

But maybe I'm looking at the wrong places.

Regards,
Dirk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Aug 31 11:53:57 2004

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.