RE: New SHA1 property for nodes returned 'svn ls --xml' invocations.
From: <bert_at_qqmail.nl>
Date: Wed, 12 Oct 2016 09:29:22 +0200
If you are using dav autoversioning, then why do you want to obtain the sha using 'svn’.
You should be able to obtain the sha using a PROPFIND request against the server.
We use that checksum from there to avoid downloading the same file multiple times in our streamlined v2 http protocol.
Bert
Sent from my Windows 10 phone
From: Paul Hammant
Considering ..
svn info --xml https://svn.apache.org/repos/asf/subversion/trunk/subversion/mod_dav_svn/mod_dav_svn.c
I would hope for a <sha1> element at root level:
<?xml version="1.0" encoding="UTF-8"?>
Considering ..
svn ls --xml https://svn.apache.org/repos/asf/subversion/trunk/subversion/mod_dav_svn/
Similarly resulting in the insertion of <sha1>:
<?xml version="1.0" encoding="UTF-8"?>
...
<entry
...
</list>
svn-ls doesn't have and entry for "." of course. It's parent has that node, and svn-ls works on directories just fine.
For the entry of directory that contains mod_dav_svn.c, I'd hope for the SHA1 to be a function of the SHA1s of the files within. That's Merkle-tree style - a super important feature generally as well as specifically to my use-case.
For my use-case to work, I need to have a reasonable chance of recalculating the SHA1 on the client file system without access to the remote repo, or the presence of a .svn directory. That's why I'm calling the element content-sha1. There could be a sibling element complete-sha1 which is the content-sha1 and whatever properties should be included too. I would not use that element, but properties were mentioned before.
I don't have an opinion about symlinks, of experience of them with Svn. I'm unfamilar with the hat-syntax wc-centric use of svn-ls. Therefore I don't know what to say about it.
I've read the ?kw=1 section of the release notes. My use case would not need keyword replacement. In fact it would need it to be off.
Something about something Greek in https://svn.apache.org/repos/asf/subversion/tree/readme ? - I'm lost and need further guidance as to reading materials, please.
Regards,
- Paul
On Tue, Oct 11, 2016 at 2:40 AM, Daniel Shahaf <danielsh_at_apache.org> wrote:
Please don't worry about implementation details at this stage. Adding
The real question is, what information you are asking to be provided.
Are you asking for information to be provided for plain files? For
Don't worry about how the information would be encoded on the wire; just
Cheers,
Daniel
> Re the commands svn-ls and svn-info. They have an --xml flag already, and
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.