From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#12441: Acknowledgement (24.2.50; emacs-bzr-version is not reliable) Date: Fri, 14 Sep 2012 12:16:20 -0400 Message-ID: References: <20120914.115222.209464088161029784.hanche@math.ntnu.no> <20120914.140514.1206889292717438125.hanche@math.ntnu.no> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1347639431 1714 80.91.229.3 (14 Sep 2012 16:17:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2012 16:17:11 +0000 (UTC) Cc: 12441@debbugs.gnu.org To: Harald Hanche-Olsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 14 18:17:12 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1TCYZs-0002bG-7M for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 18:17:12 +0200 Original-Received: from localhost ([::1]:40577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCYZn-0004Fs-V8 for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Sep 2012 12:17:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCYZl-0004Fe-S8 for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 12:17:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCYZk-0000e4-Kk for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 12:17:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCYZk-0000e0-HU for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 12:17:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TCYag-0004mU-6e for bug-gnu-emacs@gnu.org; Fri, 14 Sep 2012 12:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Sep 2012 16:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12441 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12441-submit@debbugs.gnu.org id=B12441.134763944318318 (code B ref 12441); Fri, 14 Sep 2012 16:18:02 +0000 Original-Received: (at 12441) by debbugs.gnu.org; 14 Sep 2012 16:17:23 +0000 Original-Received: from localhost ([127.0.0.1]:34021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCYa2-0004lP-Sm for submit@debbugs.gnu.org; Fri, 14 Sep 2012 12:17:23 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:60944) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TCYa1-0004lG-5M for 12441@debbugs.gnu.org; Fri, 14 Sep 2012 12:17:22 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1TCYZ2-00087l-O8; Fri, 14 Sep 2012 12:16:20 -0400 X-Spook: Attorney General NSA subversive ASO emc Majic terrorism X-Ran: Y(CZt*;rMidM+ X-Hue: cyan X-Attribution: GM In-Reply-To: <20120914.140514.1206889292717438125.hanche@math.ntnu.no> (Harald Hanche-Olsen's message of "Fri, 14 Sep 2012 14:05:14 +0200 (CEST)") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64293 Archived-At: Harald Hanche-Olsen wrote: > I have a local (heavyweight) repository that tracks trunk from the > official emacs repository. The tip of that branch, at the time when > I compiled emacs, was indeed revision 110013, as reported in the > emacs-bzr-version variable. > >>>From my local trunk I did > > bzr checkout --lightweight -r 109703 . ../r109703 > > and then I cd'd into that directory and compiled emacs there. > The resulting emacs shows revision 110013 in emacs-bzr-version. BTW, so does: bzr revno unless you add --tree. > I have not checked if doing a heavyweight checkout would yield the > same result. No, that works fine. It also takes exactly the same time to checkout and produces a directory with exactly the same size (assuming a shared repository) as the lightweight case. So I'd suggest forgetting about lightweight checkouts. I'd say what you're doing is outside the simple uses cases that emacs-bzr-version (which is really just a minor convenience for bug reports) is for. You obviously know what revision you are using since you specified it manually. There's no way to get the real revision number of your lightweight checkout without running a bzr command. But I do not want to run any form of external command to find emacs-bzr-version, since it happens during dumping, etc. It would perhaps be better if we returned nil rather the wrong answer in your case, but I see no way even to do that. Lightweight checkouts with and without -r differ only in their dirstate files. So perhaps the information is buried in here if someone wants to dig it out. But there is no simple version string AFAICS. Which is a long-winded way of saying this gets a "wontfix" from me.