can I set properties directly on server without calcing hash?

View: New views
2 Messages — Rating Filter:   Alert me  

can I set properties directly on server without calcing hash?

by Lutz Dornbusch-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,
I was trying to set a property directly on my server via file://
protocol(without checking out a working copy). However, if I want to
change a file I have to open it, and on close I have to submit a hash of
my changed file. I didn't changed the contents of my file, but
add/modify a property. In svnkit are two methods for calculating the
hash, but I can only give a (local?) File or a string with file content.
I do not have any of this, because I want to set properties directly on
my server like the svn propset command.
Is this possible? Is there a hashing algorithm operating directly on
file in repository?

Greetings,
Lutz Dornbusch

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...


Re: can I set properties directly on server without calcing hash?

by Alexander Kitaev-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Lutz,

You may just pass "null" instead of checksum to the "closeFile(...)" method.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!

Lutz Dornbusch wrote:

> Hi there,
> I was trying to set a property directly on my server via file://
> protocol(without checking out a working copy). However, if I want to
> change a file I have to open it, and on close I have to submit a hash of
> my changed file. I didn't changed the contents of my file, but
> add/modify a property. In svnkit are two methods for calculating the
> hash, but I can only give a (local?) File or a string with file content.
> I do not have any of this, because I want to set properties directly on
> my server like the svn propset command.
> Is this possible? Is there a hashing algorithm operating directly on
> file in repository?
>
> Greetings,
> Lutz Dornbusch
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: svnkit-users-unsubscribe@...
> For additional commands, e-mail: svnkit-users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...