unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: 22083@debbugs.gnu.org, oub@mat.ucm.es
Subject: bug#22083: 25.0.50; hg: adding tag enhances the rev, modeline does not reflect
Date: Fri, 04 Dec 2015 10:55:17 +0200	[thread overview]
Message-ID: <83610eioei.fsf@gnu.org> (raw)
In-Reply-To: <566103DA.2050901@yandex.ru>

> From: Dmitry Gutov <dgutov@yandex.ru>
> Date: Fri, 4 Dec 2015 05:09:14 +0200
> 
> > Closing  and reopening the buffer the modline reflects  HG-30
> >
> > Instead of HG-31.
> >
> > Can anybody confirm this, bug or feature?
> 
> I don't know if it's a bug, but it's definitely lack of a feature: 
> unlike, say, Git, the Hg backend doesn't define its own mode-line-string 
> handler, so the mode line displays what vc-default-mode-line-string 
> returns, and it uses the current revision without any tags.
> 
> Do we really want to display the current tag in the mode-line? Do we 
> want to see the word "tip" in there?

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.

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.





  reply	other threads:[~2015-12-04  8:55 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-03 13:51 bug#22083: 25.0.50; hg: adding tag enhances the rev, modeline does not reflect Uwe Brauer
2015-12-04  3:09 ` Dmitry Gutov
2015-12-04  8:55   ` Eli Zaretskii [this message]
2015-12-04 11:41     ` Dmitry Gutov
2015-12-04 14:27       ` Eli Zaretskii
2015-12-04 14:43         ` Dmitry Gutov
2015-12-04 14:51           ` Eli Zaretskii
2015-12-04 15:15             ` Dmitry Gutov
2015-12-04 15:19               ` Eli Zaretskii
2015-12-04 15:21                 ` Dmitry Gutov
2015-12-04 15:37                   ` Eli Zaretskii
2015-12-04 15:46                     ` Dmitry Gutov
2015-12-04 16:13                       ` Eli Zaretskii
2015-12-04 17:54                         ` Dmitry Gutov
2015-12-04 18:27                           ` Eli Zaretskii
2015-12-04 12:02     ` Uwe Brauer
2015-12-05  6:08       ` Dmitry Gutov
2015-12-05 12:24         ` Andy Moreton
2015-12-05 19:01           ` Uwe Brauer
2015-12-05 19:08           ` Dmitry Gutov
2015-12-07 14:36             ` Andy Moreton
2015-12-07 22:05               ` Dmitry Gutov
2015-12-05 19:11         ` Uwe Brauer
2015-12-05 19:55           ` Dmitry Gutov
2015-12-05 21:36             ` Uwe Brauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83610eioei.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=22083@debbugs.gnu.org \
    --cc=dgutov@yandex.ru \
    --cc=oub@mat.ucm.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).