Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

#7665 closed defect (fixed)

Incorrect merge diffs in TracMercurial

Reported by: kent37@… 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 Christian Boos, 16 years ago

Component: version control/changeset viewplugin/mercurial
Milestone: not applicable
Owner: set to Christian Boos
Priority: normalhigh

Woops, problem introduced in r7262 (in the 0.12 branch of the plugin, the id is a pair: (reponame,id)).

comment:2 by Christian Boos, 16 years ago

Resolution: fixed
Status: newclosed

Fixed in r7558. Thanks for the report & solution!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.