Opened 7 years ago

Closed 4 years ago

log:@REVa:REVb broken

Reported by: Owned by: anonymous Herbert Valerio Riedel normal GitPlugin major revisionlog revision log 0.11

Description

When linking to a revision log, only the log: syntax can be used. This however, is broken (unless using log:@ or log:@HEAD:HEAD or log:@HEAD, which trac seems fine with), and results in the following error.

ValueError: invalid literal for int() with base 10: 'REVa-REVb'


I'm not sure if this is trac issue or a GitPlugin issue. Either way, I would like to be able to use the syntax.

comment:1 Changed 7 years ago by anonymous

Further inspection shows the following block of code is at fault:

File "/usr/lib/python2.5/site-packages/trac/util/init.py", line 406, in appendrange

        p = self.pairs
for x in r.split(","):
try:
a, b = map(int, x.split('-', 1))
except ValueError:
a, b = int(x), int(x)
if b >= a:
p.append((a, b))
self._reduce()

def _reduce(self):


comment:2 Changed 6 years ago by Herbert Valerio Riedel

seems related to #3888

comment:3 Changed 4 years ago by Jun Omae

Resolution: → cantfix new → closed

That is a TracLinks issue which has been reported in t:#11050.

Modify Ticket

Action
as closed The owner will remain Herbert Valerio Riedel.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

Note: See TracTickets for help on using tickets.