Opened 6 years ago

Last modified 6 years ago

#8991 new defect

autoindex = true doesn't work

Reported by: Nelso G. Jost Owned by: Bangyou Zheng
Priority: normal Component: TracSuposePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12


This is a great plugin, with a really nice proposal. But I can't activate the property autoindex = true on trac.ini, I got the error:

AttributeError: 'NoneType' object has no attribute 'group'

traced back for: tracsupose/, line 133

130	                youngest = int( repo.youngest_rev )
131	                #raise Exception( int( indexedrev ) < youngest )
132	                base ="(svn:.*:)(.*:.*)", repo.get_base() )
133	                base =
134	                base = "file:///" +  base
135	                if not indexedrev:

Using: Python 2.6.5/Trac 0.12/Genshi 0.6.

For now I'm indexing directly with the supose, outside Trac, with cron scheduling.

Attachments (0)

Change History (4)

comment:1 Changed 6 years ago by Bangyou Zheng

Do you use windows?

I think this bug belong to line 132. repo.get_base() in your computer may be not regular.

base ="(svn:.*:)(.*:.*)", repo.get_base() )

In my computer, it is


Could you check it by adding these codes after line 123

repo = self.env.get_repository(authname=req.authname)
raise Exception( repo.get_base() )

comment:2 Changed 6 years ago by Nelso G. Jost

I'm using Ubuntu Server v10.04.

I added the code you told, and Exception was raised as:

Exception: svn:8a9c5727-bea5-4b71-b625-acc3b0263769:/project/svn

comment:3 Changed 6 years ago by Bangyou Zheng

I am trying to fix this bug. Could you test it as I don't have a computer with Linux?


comment:4 Changed 6 years ago by Bangyou Zheng

Although this plugin can automatically call supose to index new versions in the svn repository, I DO NOT suggest to use this function as there maybe some problems for high actively repository. This function is only designed for my own small repository which just used by myself. Cron Scheduling will be the best choices.

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Bangyou Zheng.

Add Comment

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

Note: See TracTickets for help on using tickets.