Project

General

Profile

Actions

Defect #3724

closed

Mercurial repositories display revision ID instead of changeset ID

Added by Scot Herring over 14 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Low
Assignee:
Toshi MARUYAMA
Category:
SCM
Target version:
Start date:
2009-08-10
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Redmine exposes Mercurial's revision IDs (one-up decimal number, similar to Subversion) as the primary means of referring to changesets, rather than the changeset ID (strings of hex digits, like Git). While this does work, it's explicitly discouraged in Mercurial's documentation.

From the FAQ:

You should always use some form of changeset ID rather than the local revision number when discussing revisions with other Mercurial users as they may have different revision numbering on their system.

And the page on revision numbers says:

Pitfalls

Revision numbers referring to changesets are very likely to be different in another copy of a repository. Do not use them to talk about changesets with other people. Use the changeset ID instead.

(Emphasis theirs.)

The behavior of hgweb.cgi (the web frontend that comes with Mercurial) is to expose only the short-form changeset IDs. However it allows entering a revision ID into the URL as well. So the following URLs will bring up the same patch:

This is probably the sanest path to take with Redmine, in terms of keeping old URLs functioning and also to more or less parallel the way that Git repos are managed.

Issue #3567 might be tangentially related to this.


Files

mercurial_scmid_authoritative.patch (2.89 KB) mercurial_scmid_authoritative.patch Make scmid the authoritative revision, since revisions are ambiguous to a DVCS Peter Fern, 2009-12-15 14:44
hg-overhaul-000.png (8.77 KB) hg-overhaul-000.png Toshi MARUYAMA, 2010-03-13 06:05
hg-overhaul-001.png (11.4 KB) hg-overhaul-001.png Toshi MARUYAMA, 2010-03-13 06:05
hg-overhaul-002.png (13.7 KB) hg-overhaul-002.png Toshi MARUYAMA, 2010-03-13 06:05
hg-overhaul-003.png (25 KB) hg-overhaul-003.png Toshi MARUYAMA, 2010-03-13 06:05
before-link.png (53.9 KB) before-link.png Toshi MARUYAMA, 2011-01-25 12:32
before-repository.png (105 KB) before-repository.png Toshi MARUYAMA, 2011-01-25 12:32
after-annotate.png (81.4 KB) after-annotate.png Toshi MARUYAMA, 2011-01-25 12:32
after-link-id.png (55.7 KB) after-link-id.png Toshi MARUYAMA, 2011-01-25 12:32
after-link-revno.png (54.5 KB) after-link-revno.png Toshi MARUYAMA, 2011-01-25 12:32
after-repository.png (93.3 KB) after-repository.png Toshi MARUYAMA, 2011-01-25 12:32
before-annotate.png (68.9 KB) before-annotate.png Toshi MARUYAMA, 2011-01-25 12:32

Related issues

Related to Redmine - Feature #6092: Truncate Git revision labels in Activity page/feed and allow configurable lengthClosedToshi MARUYAMA2010-08-09

Actions
Related to Redmine - Defect #4924: mercurial reader disregard information from non-default branchClosed2010-02-24

Actions
Related to Redmine - Defect #6681: Mercurial, Bazaar and Darcs auto close issue text should be commit id instead of revision numberClosed2010-10-15

Actions
Related to Redmine - Feature #4455: Mercurial overhaulClosedToshi MARUYAMA2009-12-21

Actions
Related to Redmine - Defect #7518: Mercurial diff can be wrong if the previous changeset isn't the parentClosedToshi MARUYAMA2011-02-02

Actions
Related to Redmine - Defect #8030: Bazaar integration doesn't notice new commits to repositoryNew2011-03-31

Actions
Related to Redmine - Feature #5501: Git: Mercurial: Adding visual merge/branch history to repository viewClosedToshi MARUYAMA2010-05-11

Actions
Actions

Also available in: Atom PDF