Project

General

Profile

Actions

Defect #14361

closed

Mercurial commit ids are short (12 digits) on database

Added by Claudio Bley over 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Toshi MARUYAMA
Category:
SCM
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Resolution:
Fixed
Affected version:

Description

I'm using redmine 2.3.1 and configured a Mercurial repository.

Referring to a commit with the changeset id (a 40 digit hexadecimal number) redmine does not render this as a link.

Furthermore, loading projects/$p/repository/revisions/$changeset_id just gives a 404 "The entry or revision was not found in the repository." error.

Of course, the commit does exist in the repo.

select scmid from changesets; only gives the short-form ID, well, unsurprisingly.

To quote http://mercurial.selenic.com/wiki/ChangeSetID

Note: a short-form ID can start out valid, but become invalid because another changeset with the same prefix shows up later on. Do not use short-form IDs for long-lived representations. You can use the --debug option to display the full changeset ID.


Files

long-node.diff (5.22 KB) long-node.diff Toshi MARUYAMA, 2013-06-26 17:25
long-node-v2.diff (8.71 KB) long-node-v2.diff Toshi MARUYAMA, 2013-06-26 19:36
redmine_hg_long_ids_tests.diff (10.9 KB) redmine_hg_long_ids_tests.diff Claudio Bley, 2014-01-31 16:33
Actions

Also available in: Atom PDF