From users-return-18271-apmail-subversion-users-archive=subversion.apache.org@subversion.apache.org Tue Jun 11 21:13:19 2013 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 7B0561069B for ; Tue, 11 Jun 2013 21:13:19 +0000 (UTC) Received: (qmail 75479 invoked by uid 500); 11 Jun 2013 21:13:18 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 75460 invoked by uid 500); 11 Jun 2013 21:13:18 -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 75453 invoked by uid 99); 11 Jun 2013 21:13:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 21:13:18 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [69.199.69.197] (HELO mx1.cbeyond.net) (69.199.69.197) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jun 2013 21:13:14 +0000 X-SBRS: None X-HAT: Sender Group RELAYLIST, Policy $RELAY applied. X-Hostname: mx1.cbeyond.net X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqEEALyRt1EKBrQe/2dsb2JhbABZgzm/F4EXdIIjAQEEAToZGhELAgEIEQQBAR8JByERFAkIAQEEARIIEYdiAwkSsUQNiFKMVIItOIJ/YQOVWYMQinWITw X-IronPort-AV: E=Sophos;i="4.87,847,1363147200"; d="scan'208";a="1836344" Received: from cbyexhub01.corp.cbeyond.net (HELO corpmail.cbeyond.net) ([10.6.180.30]) by mx1.cbeyond.net with ESMTP/TLS/AES128-SHA; 11 Jun 2013 17:12:52 -0400 Received: from crpmbx01.corp.cbeyond.net ([fe80::2992:4e2c:eaf:436a]) by cbyexhub01.corp.cbeyond.net ([::1]) with mapi; Tue, 11 Jun 2013 17:12:52 -0400 From: Andrew Reedick To: Olivier Antoine , "users@subversion.apache.org" Date: Tue, 11 Jun 2013 17:12:04 -0400 Subject: RE: History in subversion Thread-Topic: History in subversion Thread-Index: Ac5m5KAEDi0hexpCQdWo+aLO3H4FoQAAFhDw Message-ID: <1B05D8F50421E24799AE93B03CC284BE01C54071B4@CRPMBX01.corp.cbeyond.net> References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org > From: Olivier Antoine [mailto:oliviera201304@gmail.com]=20 > Sent: Tuesday, June 11, 2013 4:45 PM > To: users@subversion.apache.org > Subject: Re: History in subversion > > Thanks for your help, I will try again this. > But this is very poor compared to ClearCase. Nobody tried to script that = ? I used to use ClearCase in a past life (3.0 - 6.0). I haven't missed the a= bility to diff dirs. You might be stuck on doing things the CC way instead= of learning the Subversion paradigms. It's going to be frustrating for a = little while (it was for me.) What are you trying to do that requires diff'ing the contents of directorie= s? > 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/ You want to read up on peg revisions: http://svnbook.red-bean.com/en/1.7/s= vn.advanced.pegrevs.html =20 You don't need to specify the rev for each path in the component, e.g. "/vi= ew/foo/path@1/foo@2/bar@3/j.java@5". In SVN, the rev number is global, so = you just "/path/foo/bar/j.java@5". > I tried, it doesn't work. > Actually, I just try to analyze all elements, files and directories, cont= ained in a SVN repository. I'd like to be able to parse all the elements - = if possible without any checkout (that would be great). Use "svn export" (or for individual files, "svn cat") > Other challenge is : I need to restore a file element that has been remov= ed in a very old revision, and of course I don't know which one. > Any search command or script with Subversion ? You'll need to use a peg revision, e.g. "svn copy svn://..../path/foo.java@= 1234 ." To find the revision that the file was in can be tricky if you hav= e deleted a parent dir. In the average case, you can run "svn log -v -q ^/= path/to/branch > log.txt". Then search the text file for your missing file= to get the revision. You can also use "svn log -v -q | egrep '^r|\/foo.ja= va'". Worse case (you deleted a parent dir), you'll need to run the 'svn l= og' against the root of the repository (svn log -v -q ^/). To re-emphasize, I'm very serious about the need to stop trying to apply CC= paradigms to SVN. It's frustrating, and, in my experience, the CC way of = doing things didn't provide significant advantages in (or over) SVN.