From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.devel Subject: Re: Setting the value of `emacs-bzr-version' also from a git checkout Date: Tue, 1 Oct 2013 20:37:59 +0200 Message-ID: References: <87a9is6g2a.fsf@igel.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1380652688 1505 80.91.229.3 (1 Oct 2013 18:38:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Oct 2013 18:38:08 +0000 (UTC) Cc: Sebastien Vauban , Eli Zaretskii , Lennart Borgman , Emacs-Devel devel To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 01 20:38:11 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VR4pj-0003PW-8G for ged-emacs-devel@m.gmane.org; Tue, 01 Oct 2013 20:38:07 +0200 Original-Received: from localhost ([::1]:60566 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR4pi-0007Rj-TQ for ged-emacs-devel@m.gmane.org; Tue, 01 Oct 2013 14:38:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR4pf-0007Re-Qt for emacs-devel@gnu.org; Tue, 01 Oct 2013 14:38:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VR4pe-0001tD-Ig for emacs-devel@gnu.org; Tue, 01 Oct 2013 14:38:03 -0400 Original-Received: from mail-la0-x229.google.com ([2a00:1450:4010:c03::229]:61207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR4pc-0001st-GQ; Tue, 01 Oct 2013 14:38:00 -0400 Original-Received: by mail-la0-f41.google.com with SMTP id ec20so6225563lab.14 for ; Tue, 01 Oct 2013 11:37:59 -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=Qvx00vHsNOgI1RNeBYR4iQY49jCGPty9HeseWA1PvB8=; b=tfPHnNWxe4e+I8Y0k2pTj8bSVf++XdOPAC2EtRACNYqr5wgyV4cLS1hbAir64O3QjV dWYYI86OROyQJ5DaCNZThZZQcrrNmN2u7n04G/WdMfUIpaFiQLodLQD5mN3MBEdnN5VE Ba9WXJGXWu9pplww9+CJaE/0TJPFufW9rjpJIyFYlZIc/OT+CslHYZruuiMmlBTnvoNR L7T4RM4IWDoA++TJ51cE0mnxa6rKpmrBvSSvNPHYqHpSKWBxGDhSmKSqXPV8/vcG6CJk epV7+fESKKntEYCJNSDi/Y7bWZ/AJ5Z3AxdOJzy/Aw38H12+v3prfQFECuSS39juIULL LJOw== X-Received: by 10.112.52.225 with SMTP id w1mr12055009lbo.31.1380652679109; Tue, 01 Oct 2013 11:37:59 -0700 (PDT) Original-Received: by 10.114.176.231 with HTTP; Tue, 1 Oct 2013 11:37:59 -0700 (PDT) In-Reply-To: <87a9is6g2a.fsf@igel.home> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:163780 Archived-At: >> But FWIW, if I try Andreas' command on my git repo I get an error: >> >> $ git log -1 | head -n1 >> commit 2c691e3566392fb2d234892cf379b58886e98361 >> >> $ git notes show 2c691e3566392fb2d234892cf379b58886e98361 >> error: No note found for object 2c691e3566392fb2d234892cf379b58886e98361. > > You need to configure your repo to fetch the notes. > > $ git config --add remote.origin.fetch "+refs/notes/*:refs/notes/*" Yes, that worked: $ git notes show d079fb16c40905c3ebb5a53483dc17eb85d1577b monnier@iro.umontreal.ca-20131001155253-f13ed73lrl2p8utj But the final goal would be to make `emacs-bzr-version' get the correct value also when building emacs from the official git repo. And since its value includes both the bzr revno and the bzr revision ID (e.g. "114456 rgm@gnu.org-20130925101746-8kz06nvtpjms0hy3"), the notes stored in the git repo are insufficient (they lack the bzr revno). -- Dani Moncayo