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

Set attribute with svnserve protocole

From: Jean-Claude Antonio <jcantonio_at_arcetis.com>
Date: Mon, 15 Sep 2008 21:11:52 +0200


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);

        String file = "my.file";
        editor.addFile(file, null, -1);
        editor.applyTextDelta(file, null);

        editor.changeFileProperty(file, "prop",
        SVNDeltaGenerator deltaGenerator = new SVNDeltaGenerator();
        String checksum = deltaGenerator.sendDelta(file, new
ByteArrayInputStream("".getBytes()), editor, true);

        editor.closeFile(file, checksum);

Kind regards,


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:12:31 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.