Modify

Opened 15 years ago

Closed 12 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

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 15 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 14 years ago by Herbert Valerio Riedel

seems related to #3888

comment:3 Changed 12 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
Action
as closed The owner will remain Herbert Valerio Riedel.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.