Ticket #6216 (new defect)

Opened 4 months ago

Last modified 4 months ago

log:@REVa:REVb broken

Reported by: anonymous Assigned to: hvr
Priority: normal Component: GitPlugin
Severity: major Keywords: revisionlog revision log
Cc: Trac Release: 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.

Attachments

Change History

11/16/09 21:04:10 changed 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):

Add/Change #6216 (log:@REVa:REVb broken)




Change Properties
Action