Opened 8 years ago

Closed 6 years ago

Last modified 5 years ago

#1118 closed defect (fixed)

svn links in Trac automatically check out the svn files

Reported by: THALES Australia Owned by: anybody
Priority: normal Component: Request-a-Hack
Severity: normal Keywords: subversion svn trac check out hyperlink download
Cc: Trac Release: 0.10


I was wondering if it would be possible to write a plugin that would allow hyperlinks to subversion repositories to simply download that directory instead of opening the directory to browse.

It seems like something that this site (Trac Hacks) could also really benefit from. Instead of giving instructions that say: Open subversion and type in the following url, just clicking on the link would run subversion with the intent to check out the relevant directory.

If anyone can help me out, it would be much appreciated.

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by anonymous

Okay, this is totally dependent on you using Windows, Tortoise SVN and firefox, but if you do the following:

  • First, do the suggestion in #227 (may need to tweak it a little for .10)
  • Get TortoiseSVN installed on your windows machine
  • Get Firefox installed on your windows machine
  • install the TSVN plugin for firefox

You can then use firefox to browse source on your trac instance, right click on whatever SVNLink you want to use and use the Tortoise menu to check out.

comment:2 Changed 8 years ago by THALES Australia

Thanks a lot, anonymous - thats a great way to solve the problem. I think it will be the solution I end up using for the windows machines at the very least. However, I would like to find another way to fix this on computers that use linux as an operating system. There is no tortoise SVN for linux ,although I did find some alternatives: but I haven't found a browser plugin for any of them yet.

What I would ideally like to do, however, is make the changes to the server rather than having to install and update a whole network of computers. The network we are working with is quite large, and it would be best if we were able to confine the work to the trac/subversion server.

Thanks for your help though - realistically, it is probably the approach we will end up using.

comment:3 Changed 6 years ago by rjollos

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

If you want to allow a directory to be downloaded in ZIP format, this can be done on Trac 0.11. In the [browser] section, configure downloadable_paths. See the documentation for details.

Please reopen the ticket if this does not satisfy your requirements.

Add Comment

Modify Ticket

as closed The owner will remain anybody.
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.