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

Re: History in subversion

From: Mark Phippard <markphip_at_gmail.com>
Date: Tue, 11 Jun 2013 16:59:32 -0400

On Tue, Jun 11, 2013 at 4:45 PM, Olivier Antoine
<oliviera201304_at_gmail.com> wrote:
> Thanks for your help, I will try again this.
>
> But this is very poor compared to ClearCase. Nobody tried to script that ?

It is open-source, so nothing is stopping someone from implementing
this if they find it important. I think most of us do not see a need
for it so it has not risen to the level of being someone's "itch to
scratch".

I am sure someone has scripted this but whether they shared it and you
can find it are questions I cannot answer.

> It is also possible to read the SVN repository without checkout, there is a
> way to address an element, something like this :
> <element url>@revnumber
>
> But it is not possible to use a syntax like this :
>
> <directory>@revnumber/<file>
>
> I tried, it doesn't work.

Have you tried this?

http://subversion.apache.org/docs/release-notes/1.6.html#historical-uris

Note that would just be for using something like curl or wget. A svn
client has always been capable of doing this.

> Actually, I just try to analyze all elements, files and directories,
> contained in a SVN repository. I'd like to be able to parse all the elements
> - if possible without any checkout (that would be great).
>
> Other challenge is : I need to restore a file element that has been removed
> in a very old revision, and of course I don't know which one.
>
> Any search command or script with Subversion ?

Restoring something that was removed is easy. However, finding the
element and when it was deleted is unfortunately not easy. As with
the previous example, you would want to run svn log with the --verbose
option and parse the output to find the revision when the item was
removed. Looking at the history of a parent folder for the item would
show when it was deleted, but you would have to search the output or
script it.

--
Thanks
Mark Phippard
http://markphip.blogspot.com/
Received on 2013-06-11 23:00:04 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.