Downloading from Trac
Downloading from Trac
I would like to know if it’s possible to download a dynamically generated tar file from Trac. In an expertise page on this site I would like to be able to link to the source of the Expertise plugin from within the article itself. When a user clicks on this link, either Trac, Subversion or Wordpress should generate the tar file and send it as a download.
Comments
- I asked around for a fix for this on IRC:bionoid> fredl: Check out the downloadable_paths ini option; Not .tar, but .zip if that helps
By adding:downloadable_paths = /trunk, /branches/*, /tags/*, /trunk/expertiseI made the expertise trunk code downloadable through Trac
- Curious to see how this works
- And another reply…
- This is reasonably nice.
-
-
-
- Although this solution works when you're browsing on the Trac server itself, the zip link includes a changeset number.
- The link itself looks like:http://trac.dutchie.org/changeset/103/trunk/exp...This implies a fixed changeset number. Experimenting shows that using 'latest' instead of a fixed number also works, so:http://trac.dutchie.org/changeset/latest/trunk/...

Loading...