Zip downloads from Trac

Comments

Nevermind! It looks like the functionality is built into Trac! For example:

http://code.sixapart.com/trac/mtplugins/changeset/latest/trunk/RebuildQueue/?old_path=/&filename=RebuildQueue&format=zip
Trac rocks...
So to break that down:

1. Go to your Trac installation and click on Browse Source
2. Click through the source until you find the root directory that you'd like to download
3. Click on the "Last change" link on the top right
4. In the address bar, you'll see something like "changeset/243" (which indicates the revision number you're looking at. Change the revision number to "latest" so that you have "changeset/latest"
5. To the end of that URL, add the following query string: ?old_path=/&filename=BASENAME&format=zip. Change BASENAME to the base file or directory name you'd like the zip archive to have. Normally, this is just the directory name that you wish to download
6. Hit enter and see your download start

Personally, if I were administering a Trac installation, I'd add an Apache rewrite rule or redirect to offer an easy URL like that mentioned in the original entry above. Easy as pie...
Oh, awesome.
[this is good]
How about a bookmarklet?
[this is good]
whoa, that's hot! thank you, i never realized trac did that. i'll have to try it with mine.
hello :)

Post a comment

Already a Vox member? Sign in

Jay Allen

About Me

Jay Allen
United States
So many cheetos, so little time...
del.icio.us:
jayallen
Flickr:
jayallen
LinkedIn:
jsallen
Ma.gnolia:
jayallen
Pownce:
jayallen
Twitter:
jayallen
Upcoming:
fooljay
Vox:
jay

Neighborhood

Explore friends, family, friends & family, or entire neighborhood.

Archives