Feature suggestion: determination of the subversion commit number for a directory (over DAV without svn clients involved)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Feature suggestion: determination of the subversion commit number for a directory (over DAV without svn clients involved)

Paul Hammant-3
One can use WebDAV's PROPFIND to list the contents of a directory in Subversion. You won't be told the Subversion revision for any of the directory results however, but you will for the file items in the result set.

You have to do an OPTIONS and a PROPFIND call for each directory one at a time to get the revision numbers for directories - see here: https://github.com/paul-hammant/SvnMerkleizer/blob/master/src/main/java/com/paulhammant/svnmerkleizer/App.java#L330 (method get getSvnRevision).

Can the XML response of PROPFIND be enhanced to have an extra element that reports the revision number to the caller? That way one could do a single PROPFIND (even a depth=infinity one, subject to config) and get back all the Subversion revision numbers for all the directories with the result set.

Some operations report a revision number that appears a first glance to be for the directory, but it is actually the revision number of the root of the repo. While that is useful too, it isn't what I'm after here.

Permission to add a Jira issue to track this, after due discussion here of course.

- Paul

--
Paul Hammant DevOps Let me give your enterprise a step by step plan to get out of the hell of crazy branching models (ClearCase maybe?) and into the world of high-throughput CD on DevOps foundations.