From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.bugs Subject: bug#22083: 25.0.50; hg: adding tag enhances the rev, modeline does not reflect Date: Fri, 04 Dec 2015 12:02:54 +0000 Message-ID: <87vb8eto9d.fsf@mat.ucm.es> References: <87h9jzy70u.fsf@mat.ucm.es> <566103DA.2050901@yandex.ru> <83610eioei.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1449230669 23271 80.91.229.3 (4 Dec 2015 12:04:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 4 Dec 2015 12:04:29 +0000 (UTC) To: 22083@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 04 13:04:17 2015 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 1a4p5z-0008Jx-RI for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Dec 2015 13:04:16 +0100 Original-Received: from localhost ([::1]:40261 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4p5z-0003c8-88 for geb-bug-gnu-emacs@m.gmane.org; Fri, 04 Dec 2015 07:04:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4p5r-0003bN-DK for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 07:04:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4p5m-0002jY-CQ for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 07:04:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4p5m-0002jU-9r for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 07:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a4p5m-0001IY-2b for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 07:04:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87h9jzy70u.fsf@mat.ucm.es> Resent-From: Uwe Brauer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Dec 2015 12:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22083 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14492306404982 (code B ref -1); Fri, 04 Dec 2015 12:04:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Dec 2015 12:04:00 +0000 Original-Received: from localhost ([127.0.0.1]:38286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4p5j-0001II-LA for submit@debbugs.gnu.org; Fri, 04 Dec 2015 07:03:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40445) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a4p5P-0001Hr-91 for submit@debbugs.gnu.org; Fri, 04 Dec 2015 07:03:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4p5O-0002ds-4k for submit@debbugs.gnu.org; Fri, 04 Dec 2015 07:03:39 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4p5O-0002do-2E for submit@debbugs.gnu.org; Fri, 04 Dec 2015 07:03:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4p5N-0003UR-0x for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 07:03:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4p5I-0002cW-2L for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 07:03:36 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:59725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4p5H-0002Zo-Sl for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 07:03:32 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1a4p4z-0006w6-Cc for bug-gnu-emacs@gnu.org; Fri, 04 Dec 2015 13:03:13 +0100 Original-Received: from gilgamesch.quim.ucm.es ([147.96.12.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Dec 2015 13:03:13 +0100 Original-Received: from oub by gilgamesch.quim.ucm.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 Dec 2015 13:03:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: bug-gnu-emacs@gnu.org Original-Lines: 71 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: gilgamesch.quim.ucm.es Mail-Copies-To: never User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:+zYzHJmq8hxzn6GS9AGSckayj4U= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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:109581 Archived-At: > IMO, the answer depends on 2 factors: > . what the hg users expect > . what can be usefully shown in the small space we can afford for > this on the modeline > More generally, I don't see the current display as a bug, because this > part of the mode line shouldn't be expected to tell too much about the > version anyway. Modern dVCSes are not like RCS or CVS: showing > something like rXX.YY is no longer possible, or meaningful. A file > under Git shows me a (silly, IMO) "Git-BRANCH_NAME" string that tells > absolutely nothing about the current revision. If we wanted to be > sure some useful revision-specific information is shown, we would need > to change the Git implementation to show what "git describe" returns, > for example. Right this is one of the reasons I prefer HG over git (the other is lack of keyword expansion, which might be obsolete for coding, but useful for LaTeX files.) Anyhow pls no flamewar about it, that is just my opinion. > So IMO before we discuss Uwe's request, we should decide what exactly > is the meaning of that string we show in the modeline. I don't think > it is well defined as things stand now. Ok I try to explain again what I find confusing: Here is what I did Command line hg init create and add file test.tex change comit 3 times hg log --template '{rev} {latesttag}.{latesttagdistance} {desc} {files}\n' 2 null.3 Com3 test.tex 1 null.2 Com2 test.tex 0 null.1 Com1 test.tex hg tag -r 2 v1 hg log --template '{rev} {latesttag}.{latesttagdistance} {desc} {files}\n' 3 v1.1 Added tag v1 for changeset 649afdff7ebe .hgtags 2 v1.0 Com3 test.tex 1 null.2 Com2 test.tex 0 null.1 Com1 test.tex hg kwexpand in the file $Id: test.tex,v v1.0[Hg:2] 2015/12/03 15:15:15 oub Exp oub $ change and commit in Emacs \rcsInfo $Id: test.tex,v v1.2[Hg:4] 2015/12/03 15:19:49 oub Exp oub $ so there is now a jump from Hg2 to Hg:4 which is annoying. Possible solutions: - The modeline string shows what «hg log» shows as a rev. - The modeline string shows both rev, that is HG:rev/rev_from_hg_log - The modeline string show HG:rev and the latest tag HG:rev/latest_tag however as already noted the modeline is tiny and should not be overloaded. Uwe