From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: `about-emacs' - what about the revno? Date: Mon, 30 Aug 2010 18:22:40 +0200 Message-ID: References: <83occmlogo.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1283188035 27592 80.91.229.12 (30 Aug 2010 17:07:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Aug 2010 17:07:15 +0000 (UTC) Cc: Eli Zaretskii , Drew Adams , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 30 19:07:13 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 1Oq7p7-00009I-Bo for ged-emacs-devel@m.gmane.org; Mon, 30 Aug 2010 19:07:09 +0200 Original-Received: from localhost ([127.0.0.1]:49535 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oq7p6-0007PX-KE for ged-emacs-devel@m.gmane.org; Mon, 30 Aug 2010 13:07:08 -0400 Original-Received: from [140.186.70.92] (port=57766 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oq78Q-0005yr-JK for emacs-devel@gnu.org; Mon, 30 Aug 2010 12:23:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oq78P-0003Sj-6V for emacs-devel@gnu.org; Mon, 30 Aug 2010 12:23:02 -0400 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:37282) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq78P-0003Sf-3B; Mon, 30 Aug 2010 12:23:01 -0400 Original-Received: by qwf7 with SMTP id 7so6624510qwf.0 for ; Mon, 30 Aug 2010 09:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=TOAkjPdye5Ff2BWHEvx1joQQC4tgOeJddkCobBLEDzQ=; b=H5jFL1dXXNI09k5VYcvinoIxd3rZNVKW7SHMJ4Puj/IsRI6e1cHdMzSlHX3Qd8dVOJ J+qXPuAe0UcJD4XrQK65vwTNP7R/vZmSMTX1pGVbrPQ5BElxnzy0c8Sv8VneNcGVf1tP h73D2EucuKZVbMLJBBymFvmgd0+fLLfW+mUX4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=MNEre7yoBglQV+Lxc1JkHBB3FLvSeMiaFLDOnAPHdaVPu2QFED17wHtV11Nhfxb78X wt5/I2+NmrNOTVyMqxk346pN0Wbh5/JiiEg2ABt/uJ3Usmk30fS15jItd9JB3wrLthBt GaONFghn6Q49piNA3xvL3T0UjBOZz6mobgv5M= Original-Received: by 10.229.218.69 with SMTP id hp5mr3241448qcb.18.1283185380292; Mon, 30 Aug 2010 09:23:00 -0700 (PDT) Original-Received: by 10.229.20.139 with HTTP; Mon, 30 Aug 2010 09:22:40 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:129435 Archived-At: On Mon, Aug 30, 2010 at 5:41 PM, Stefan Monnier wrote: >> This has come up before, but the discussion was inconclusive (IIRC) >> because of 2 reasons: > >> =C2=A0 . revno is not unique: two different branches can have the same >> =C2=A0 =C2=A0 revno for two very different code bases > > Maybe we should try and provide the revno of the common ancestor on > the trunk. =C2=A0I only see two problems with it: > 1- you'll probably need Internet access to find this info (might be > =C2=A0 problematic during a build, for instance). > 2- I don't know how to tell Bzr to give me this info. I use this in my patched version of Emacs (on w32): bzr version-info --custom --template "(defconst emacs-emacsw32-bzr-revision-id \"{revision_id}\")\n" bzr version-info --custom --template "(defconst emacs-emacsw32-bzr-date \"{date}\")\n" bzr version-info --custom --template "(defconst emacs-emacsw32-bzr-revno {revno})\n" bzr version-info --custom --template "(defconst emacs-emacsw32-bzr-branch-nick \"{branch_nick}\")\n" and then I save this to a file which I read in Emacs.