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

Re: Set attribute with svnserve protocole

From: Mark Phippard <markphip_at_gmail.com>
Date: Mon, 15 Sep 2008 15:17:47 -0400

On Mon, Sep 15, 2008 at 3:11 PM, Jean-Claude Antonio
<jcantonio_at_arcetis.com> wrote:

> I al trying to set an attribute value on a file and this piece of code works
> fine with the http protocole but not the svnserve protocole.
> with svnserve protocole the file is created but no attribute was set.
>
> ISVNEditor editor = repository.getCommitEditor("xxxxxxxxxxxchange
> properties", null);
> editor.openRoot(-1);
>
> String file = "my.file";
> editor.addFile(file, null, -1);
> editor.applyTextDelta(file, null);
>
> editor.changeFileProperty(file, "prop",
> SVNPropertyValue.create("value"));
> SVNDeltaGenerator deltaGenerator = new SVNDeltaGenerator();
> String checksum = deltaGenerator.sendDelta(file, new
> ByteArrayInputStream("".getBytes()), editor, true);
>
> editor.closeFile(file, checksum);
> editor.closeDir();

It looks like you are using SVNKit, not Subversion. You should email
support_at_svnkit.com

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-15 21:18:08 CEST

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.