#11785 closed defect (fixed)
node_format = short and show_rev = yes not honored in post-commit message
Reported by: | anonymous | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Milestone: | 1.0.3 |
Component: | ticket system | Version: | 1.0.1 |
Severity: | normal | Keywords: | CommitTicketUpdater mercurial git |
Cc: | Branch: | ||
Release Notes: |
Show |
||
API Changes: | |||
Internal Changes: |
Description
The post-commit message in a ticket's history always shows the full hash for the changeset and no revision number, irrespective of node_format = short and show_rev = yes settings. Same if they are omitted (they are the defaults anyways). The shortened hash and the revision number are correctly displayed in the timeline, source browser, and apparently anywhere else.
To reproduce: create a ticket, commit to hg repo with a commit message like 'closes #1' to trigger a ticket status change. Now the ticket status is 'closed' and its history shows a message with the full hex hash and without revision number.
System: Win7 64 bits, Python 2.7.6 32 bits, Trac 1.0.1, tracmercurial 1.0.0.3dev-r0 (installed globally), mercurial-3.1.1.win32-py2.7.exe from https://bitbucket.org/tortoisehg/files/downloads
Attachments (0)
Change History (6)
comment:1 by , 10 years ago
Component: | plugin/mercurial → ticket system |
---|---|
Keywords: | CommitTicketUpdater git added |
Milestone: | → 1.0.3 |
Owner: | set to |
Status: | new → assigned |
comment:5 by , 10 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
comment:6 by , 10 years ago
Release Notes: | modified (diff) |
---|
Indeed. I'll post diff for unit tests later.
tracopt/ticket/commit_updater.py
]:repos.reponame, changeset.rev, changeset.message.strip())