From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31824 invoked by alias); 9 Aug 2007 09:09:26 -0000 Received: (qmail 31364 invoked by uid 22791); 9 Aug 2007 09:09:21 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0910.google.com (HELO rv-out-0910.google.com) (209.85.198.184) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 09 Aug 2007 09:09:14 +0000 Received: by rv-out-0910.google.com with SMTP id f5so320549rvb for ; Thu, 09 Aug 2007 02:09:13 -0700 (PDT) Received: by 10.141.141.3 with SMTP id t3mr844271rvn.1186650552890; Thu, 09 Aug 2007 02:09:12 -0700 (PDT) Received: by 10.141.1.13 with HTTP; Thu, 9 Aug 2007 02:09:12 -0700 (PDT) Message-ID: <6c33472e0708090209m78f8495cq4d083c4a1221d2cd@mail.gmail.com> Date: Thu, 09 Aug 2007 09:09:00 -0000 From: "=?ISO-8859-1?Q?Manuel_L=F3pez-Ib=E1=F1ez?=" To: "H.J. Lu" Subject: Re: PATCH: Report branch/revsion info from "gcc -v" Cc: "Andreas Schwab" , gcc-patches@gcc.gnu.org In-Reply-To: <20070730181745.GA11859@lucon.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070730162648.GA11130@lucon.org> <20070730172155.GA11553@lucon.org> <20070730181745.GA11859@lucon.org> X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg00563.txt.bz2 On 30/07/07, H.J. Lu wrote: > On Mon, Jul 30, 2007 at 07:29:32PM +0200, Andreas Schwab wrote: > > "H.J. Lu" writes: > > > > > Will "svn info" be fast for all cases? > > > > "svn info" just needs to examine the head of .svn/entries, so it is > > always fast. > > > > Here are updated patches. I found "svn info" is much faster than > "svnversion". > That is because they are not the same thing at all. "svn info" will only give you the base revision of the current directory (not even the files in that directory). On the other hand, svnversion gives you a lot more information: it will tell you if the working copy has been modified (M), if there are outdated parts (files, directories) with different base revisions, if there are parts of your working copy that are switched to a branch. They are different tools and they give you different information. You just need to have a clear idea of what you really want to get. Cheers, Manuel.