Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#265 closed enhancement (wontfix)

Rewrite Source Links

Reported by:… Owned by: anybody
Priority: normal Component: Request-a-Hack
Severity: minor Keywords: rewrite links
Cc: Trac Release:


I am considering changing the structure of my Subversion repository by moving all of the top-level directories into a common directory instead. I would like Trac to remain pointed at the current top-level, but this will mean that all of my source links will be incorrect. Is there any hack script that can rewrite source links?

To further clarify, my current source structure looks like this:

root --> (dirA, dirB, dirC, ...)

I want to change it to this:

root --> commonDir --> (dirA, dirB, dirC, ...)

So all of the current source paths would need "commonDir/" prepended to them.

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by…

  • Resolution set to wontfix
  • Severity changed from blocker to minor
  • Status changed from new to closed

I am handling this by doing a search and replace on the SQL dump of the database, and then creating a new database with the SQL. This seems like the most reasonable way to proceed.

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from anybody. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.