From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: `about-emacs' - what about the revno? Date: Mon, 30 Aug 2010 20:50:50 +0300 Message-ID: <83wrr8j8g5.fsf@gnu.org> References: <83occmlogo.fsf@gnu.org> <834oeckqv3.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1283192920 18635 80.91.229.12 (30 Aug 2010 18:28:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Aug 2010 18:28:40 +0000 (UTC) To: monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 30 20:28:39 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq95y-0007Af-5P for ged-emacs-devel@m.gmane.org; Mon, 30 Aug 2010 20:28:38 +0200 Original-Received: from localhost ([127.0.0.1]:36758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oq95x-0003Qd-G9 for ged-emacs-devel@m.gmane.org; Mon, 30 Aug 2010 14:28:37 -0400 Original-Received: from [140.186.70.92] (port=60238 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oq8TU-0002Cs-Nl for emacs-devel@gnu.org; Mon, 30 Aug 2010 13:48:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oq8TT-00027c-J1 for emacs-devel@gnu.org; Mon, 30 Aug 2010 13:48:52 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:64163) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq8TT-00027M-C8 for emacs-devel@gnu.org; Mon, 30 Aug 2010 13:48:51 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L7Z00D0082XQ500@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Mon, 30 Aug 2010 20:48:49 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.126.202.93]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L7Z00C6185BM3D0@a-mtaout20.012.net.il>; Mon, 30 Aug 2010 20:48:49 +0300 (IDT) In-reply-to: <834oeckqv3.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129444 Archived-At: > Date: Mon, 30 Aug 2010 19:27:44 +0300 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > > From: Stefan Monnier > > Cc: Drew Adams , emacs-devel@gnu.org > > Date: Mon, 30 Aug 2010 17:41:28 +0200 > > > > Maybe we should try and provide the revno of the common ancestor on > > the trunk. I only see two problems with it: > > 1- you'll probably need Internet access to find this info (might be > > problematic during a build, for instance). > > 2- I don't know how to tell Bzr to give me this info. > > The answer to 2 is "bzr version-info", it accepts options that define > the format in which to produce the output. Unfortunately, in a bound > branch it hits the network. Maybe we should ask Bazaar developers to > add a --local switch. Actually, in the trunk we don't need anything but the revno, right? So the question is how to find the revno of the trunk from which the current branch branched, right? How about "bzr log --short -r ancestor:../trunk", then take only the revno from the result? The only problem is that this is quite slow: it takes 21 seconds on my Windows XP box and 11 seconds on fencepost, and that's with a warm cache -- probably too long for doing that during the build.