7

Is there a way to link every HG commit to a specific bug tracking issue?

For example, show a drop down when committing from TortoiseHg with all active JIRA issues assigned to the current user (similar to the TortoiseSVN Plugin for JIRA). Maybe a drop down is too fancy, but is there something similar to the TortoiseSVN Integration with Bug Tracking Systems / Issue Trackers available at least, i.e. a text box in the top right of the commit window where you can enter the issue number? Can't seem to find anything similar in THG.

I found some promising configurations in the TortoiseHg manual but find them very primitive... Ideas/thoughts/workarounds?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Ash
  • 789
  • 1
  • 8
  • 24
  • 3
    Ok, so in the repo .hg\hgrc file I was able to get a link to show up..by adding: [tortoisehg] issue.regex = #(\d+)\b issue.link = http://JIRA_SERVER/browse/PROJECT_NAME-{1} Would be nice if I can get that to FishEye..etc – Ash Jun 23 '10 at 17:00

3 Answers3

6

It's there now.

Go to File/Settings/, then choose either the global settings tab or the repository's one.

Under Issue Tracking add the appropriate regex and link. For example \b\w{3,7}-\d+\b and http://your.jira.server.com:8080/browse/{0}.

See http://caraulean.com/blog/2011/09/09/tortoisehg-and-jira-integrationthe-lightweight-option/

Sandro
  • 1,266
  • 2
  • 13
  • 25
3

fyi, this was addressed by the TortoiseHg team about two weeks ago. it is currently in nightly builds, but will likely make it into the next real release.

Peter Dohm
  • 31
  • 2
1

The answer is no -- TortoiseHg does not support the features you ask for. The feature has already been entered into TortoiseHg's bug tracker, so I suggest you sign up at Bitbucket and "follow" the issue there.

smooth reggae
  • 2,189
  • 13
  • 14
Martin Geisler
  • 72,968
  • 25
  • 171
  • 229