Opened 8 years ago

Closed 5 years ago

#6216 closed defect (cantfix)

log:@REVa:REVb broken

Reported by: anonymous Owned by: Herbert Valerio Riedel
Priority: normal Component: GitPlugin
Severity: major Keywords: revisionlog revision log
Cc: Trac Release: 0.11


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.

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by anonymous

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

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

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

    def _reduce(self):

comment:2 Changed 8 years ago by Herbert Valerio Riedel

seems related to #3888

comment:3 Changed 5 years ago by Jun Omae

Resolution: cantfix
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Herbert Valerio Riedel.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.