Opened 16 years ago
Closed 16 years ago
#7665 closed defect (fixed)
Incorrect merge diffs in TracMercurial
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | high | Milestone: | not applicable |
Component: | plugin/mercurial | Version: | 0.11-stable |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
When displaying merge changesets from a Mercurial repository, the (diff) links are incorrect. For example I get a link
.../changeset/2?old=71%3A389982237c52
which should be
.../changeset/72?old=71%3A389982237c52
.
The problem is at http://trac.edgewall.org/browser/sandbox/mercurial-plugin-0.11/tracext/hg/backend.py?rev=7430#L80
new = context.resource.id[1]
which should be
new = context.resource.id
With this change the above example renders as
.../changeset/72%3A3259b893a4ac?old=71%3A389982237c52
.
Problem detected with Trac 0.11.1, TracMercurial 0.11.0.5dev running on Python 2.5 under Windows.
Attachments (0)
Change History (2)
comment:1 by , 16 years ago
Component: | version control/changeset view → plugin/mercurial |
---|---|
Milestone: | → not applicable |
Owner: | set to |
Priority: | normal → high |
comment:2 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in r7558. Thanks for the report & solution!
Woops, problem introduced in r7262 (in the 0.12 branch of the plugin, the
id
is a pair:(reponame,id)
).