all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Teemu Likonen <tlikonen@iki.fi>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Drew Adams <drew.adams@oracle.com>, emacs-devel@gnu.org
Subject: Re: `about-emacs' - what about the revno?
Date: Sun, 29 Aug 2010 07:56:25 +0300	[thread overview]
Message-ID: <874oeec8zq.fsf@mithlond.arda> (raw)
In-Reply-To: <83occmlogo.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 28 Aug 2010 18:57:27 +0300")

* 2010-08-28 18:57 (+0300), Eli Zaretskii wrote:

> "Drew Adams" wrote:
>> If the "revno" is important info for identifying an Emacs build, then
>> perhaps we should include it in such user-facing info. If not, then
>> perhaps developers could refer in some other way (by date?) to the
>> code that contains a given fix.
>
> This has come up before, but the discussion was inconclusive (IIRC)
> because of 2 reasons:
>
>   . revno is not unique: two different branches can have the same
>     revno for two very different code bases
>
>   . revision-id, an alternative method of specifying a revision, _is_
>     unique, but it's long and a mouthful:
>
>             eliz@gnu.org-20100828152310-v42vqrt01k788siu

Another reason to use Git instead. With "git describe" you get unique
commit identifiers which are also human-readable and have an increasing
commit counter in it, for example:

    v23.2-54-g1234ab

It consists of the latest tag name (e.g., "v23.2") which is reachable
from the current commit, the commit count (54) after the tag and an
abbreviated SHA1 ID of the current commit (1234ab).

Some projects that use Git include such a version string automatically
to program's build. Git commands understand the string as a version
identifier. When executing "git describe" on a tagged commit it outputs
just the tag name (e.g., "v23.2") so it automatically gives the right
answer for releases too (can be useful when creating release tarballs).

Sorry for pushing Git again but it's just better.

> In general, a bugfix should appear in the ChangeLog files with the bug
> number, so you should be able to track bugfxes that way.

More elegant way is to write something like "Closes: bug#1234" in the
appropriate commit message and have the central Emacs repository use a
post-receive hook script that will detect the keyword in commit
messages. The hook script could then send control message to the bug
tracker and close the bug with a message like this:

    This issue has been fixed by the commit

        Commit: v23.2-57-gab1cd2
        Author: Dave Developer <email@internet.invalid>
        Date:   2010-00-00 00:00:00 +0000

    You can use command "git show v23.2-57-gab1cd2" in the Emacs Git
    repository to see the details.



  parent reply	other threads:[~2010-08-29  4:56 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-28 15:38 `about-emacs' - what about the revno? Drew Adams
2010-08-28 15:57 ` Eli Zaretskii
2010-08-28 16:05   ` Drew Adams
2010-08-28 16:13     ` Eli Zaretskii
2010-08-28 16:34     ` Jason Rumney
2010-08-28 17:12   ` Óscar Fuentes
2010-08-28 19:06   ` Christoph
2010-08-29  4:56   ` Teemu Likonen [this message]
2010-08-30 15:41   ` Stefan Monnier
2010-08-30 16:22     ` Lennart Borgman
2010-08-30 16:27     ` Eli Zaretskii
2010-08-30 17:50       ` Eli Zaretskii
2010-08-30 19:20         ` Óscar Fuentes
2010-08-30 22:07           ` Stefan Monnier
2010-08-31  6:34         ` Andreas Schwab
2010-08-31 10:35           ` Stefan Monnier
2010-08-31 10:41             ` Andreas Schwab
2010-08-31 13:01               ` Stefan Monnier
2010-08-31 20:08                 ` Óscar Fuentes
2010-09-01  6:20                   ` Stefan Monnier
2010-08-31 14:02               ` Miles Bader
2010-08-31 16:56             ` Eli Zaretskii
2010-09-01  6:25               ` Stefan Monnier
2010-09-01  6:42                 ` Eli Zaretskii
2010-09-01  7:45                   ` Stefan Monnier
2010-09-01  8:41                     ` Eli Zaretskii
2010-08-31 16:58             ` Eli Zaretskii
2010-08-30 17:39     ` Óscar Fuentes
2010-08-30 17:58       ` Lennart Borgman
2010-08-30 22:08       ` Stefan Monnier
2010-08-30 22:45         ` Óscar Fuentes
2010-08-31  8:22           ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to=874oeec8zq.fsf@mithlond.arda \
    --to=tlikonen@iki.fi \
    --cc=drew.adams@oracle.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.