Project

General

Profile

Actions

Patch #24434

open

Link Redmine Issues to Mercurial Branch name

Added by Ewan Makepeace about 8 years ago. Updated about 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
SCM
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

In our company we start a new Mercurial branch for every feature request. Our branch naming looks like "RM1234" where 1234 is the issue concerned.

Rather rely on issue numbers embedded in commit messages which relies on developer discipline and I find is not always relable we made the attached patch to take the issue number directly from the branch name.

I hope this may be of interest to others.

RELATED NOTES
  1. It is unfortunate that Reedmen does not feature branch names anywhere. Neither in the summary of change sets on the issue page nor even on the changes detail page is the name of the branch specified. For us this is highly desirable (much more so than the changes ID).
  2. I could see no Category in this Redmine related to Version Control, Repository support or Mercurial but am assuming SCM is the correct category?

Files

redmine-mercurial.patch (2.61 KB) redmine-mercurial.patch Ewan Makepeace, 2016-11-23 05:21
Actions #1

Updated by Ewan Makepeace about 8 years ago

Note: We have used this patch on versions 2.5.2 and 2.6.1 but not tested elsewhere.

Actions #2

Updated by Toshi MARUYAMA about 8 years ago

Could you move Mercurial specific code to derived model (e.g. Repository::Mercurial)?

Actions

Also available in: Atom PDF