subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Les Mikesell <lesmikes...@gmail.com>
Subject Re: History in subversion
Date Tue, 11 Jun 2013 21:07:13 GMT
On Tue, Jun 11, 2013 at 3:45 PM, Olivier Antoine
<oliviera201304@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@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@gmail.com

Mime
View raw message