[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: Les Mikesell <lesmikesell_at_gmail.com>
Date: Tue, 11 Jun 2013 16:07:13 -0500

On Tue, Jun 11, 2013 at 3: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 ?

svn logs will show file/directory additions/deletions in the parent
directory, so you should be able to track the history of things that
way if you wanted, but what is it that you specifically need to do?
Most people would just check out some directory level and diff it
against some other revision or a branch or tag.

> 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.

The revnumber is global to the whole repository, so
path/file_at_revnumber would mean the same thing.

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

You need a starting point and you can log backwards. If you are just
browsing, tools like tortoise or web interfaces like viewvc or websvn
might be easier.

> 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 ?

If you know the parent directory the log will show the deletion and
the revision number where it occurred. But if there were many
additions/deletions of files of the same name or at different places
in the tree it can be hard to find the one you want.

--
   Les Mikesell
    lesmikesell_at_gmail.com
Received on 2013-06-11 23:07:45 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.