Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A98061063D for ; Tue, 11 Jun 2013 20:59:59 +0000 (UTC) Received: (qmail 47285 invoked by uid 500); 11 Jun 2013 20:59:59 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 47255 invoked by uid 500); 11 Jun 2013 20:59:59 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 47248 invoked by uid 99); 11 Jun 2013 20:59:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 20:59:59 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of markphip@gmail.com designates 209.85.214.169 as permitted sender) Received: from [209.85.214.169] (HELO mail-ob0-f169.google.com) (209.85.214.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 20:59:53 +0000 Received: by mail-ob0-f169.google.com with SMTP id up14so12566138obb.14 for ; Tue, 11 Jun 2013 13:59:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RqjiC0G8TN5qDJwpFXCieO8LaikaEvUgV0vcq9sLn2I=; b=BS/9He/bXDGuqqXC30ytXteCfIRX9PtaTET267fojmNXLzWwoT0X5e/Iy2np2s/llh frLuDS9gZBt38go4BhnoBSfCtI8O4DV9w/ezzQvaSdTjRQo6fk9+V04hp1Ffl9I56L0V sEDCseO6b8UBvA7lGYtnHCOCFR7TrADHieCJ8mvRVp2f0fEVhb37y7FM8kR705vtFQ5G cJICSAvOAUcCBmZfFzJ+HjYYT2HJvdaJ7kS/AvtNhf1ZvW+Hio6ki6bGtlL3xGAv8L5k V2HI+27PxdpaRU8+MdMqpwVw/hq+SFV1puv4f7A2WUR/i5rThgoZP5UnxpNHTAu8DzrT kzwg== MIME-Version: 1.0 X-Received: by 10.60.102.230 with SMTP id fr6mr13126865oeb.141.1370984372252; Tue, 11 Jun 2013 13:59:32 -0700 (PDT) Received: by 10.76.115.135 with HTTP; Tue, 11 Jun 2013 13:59:32 -0700 (PDT) In-Reply-To: References: Date: Tue, 11 Jun 2013 16:59:32 -0400 Message-ID: Subject: Re: History in subversion From: Mark Phippard To: Olivier Antoine Cc: "users@subversion.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Jun 11, 2013 at 4:45 PM, Olivier Antoine 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 : > @revnumber > > But it is not possible to use a syntax like this : > > @revnumber/ > > 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/