Modify

Opened 5 years ago

Closed 14 months ago

#6216 closed defect (cantfix)

log:@REVa:REVb broken

Reported by: anonymous Owned by: 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 (0)

Change History (3)

comment:1 Changed 5 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 4 years ago by hvr

seems related to #3888

comment:3 Changed 14 months ago by jun66j5

  • Resolution set to cantfix
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.