You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by ma...@excite.com on 2006/08/09 23:12:16 UTC

API function to set a regular property value

 

Hi,I am desperatly looking for a way to write a C program that will set the value of a property without a working copy.My repository is primarily accessed by WebDAV.� Every time a file is added to the repository, I'd like to assign it a unique identifier (GUID) programatically.� I would like to do that using a hook script.� I know the warning related to modifying a transaction during commit but still would like to do it.Is there an API other than the WebDAV one that will let me work on a file without a WC ?Thanks in advance, Marc

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!

Re: API function to set a regular property value

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
On 8/9/06, marc.ballat@excite.com <ma...@excite.com> wrote:
>  Hi,
>
> I am desperatly looking for a way to write a C program that will set the
> value of a property without a working copy.
>
> My repository is primarily accessed by WebDAV.  Every time a file is added
> to the repository, I'd like to assign it a unique identifier (GUID)
> programatically.  I would like to do that using a hook script.  I know the
> warning related to modifying a transaction during commit but still would
> like to do it.
>
> Is there an API other than the WebDAV one that will let me work on a file
> without a WC ?

Currently there is no API for that at the client level.  You could
write something that uses libsvn_ra to do it, it wouldn't actually be
that hard to do.  Just grab a commit editor, open the file/directory
you want to modify a prop on, then modify the property, then close the
file/directory and close the editor and you're done.

-garrett

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