darcs repository web UI and hosting app. This is the main darcsden trunk, which also runs hub.darcs.net. (https://hub.darcs.net)
#40Provide tarballs of repos
Probably using darcs dist, at least for the repo head, possibly also for each tag, maybe even arbitrary patches. But mainly for head!
In the development version of darcs we now have
darcs dist --zipwhich is faster and generates a .zip archive of the repository. Using this we could have a "Download ZIP" button like on github (see on the right side of https://github.com/jgm/zip-archive for instance).Isn't this already implemented now?
- status set to closed
Seems so! Thanks.
@maerwald,
tar.xzortar.gzdownloads would be interesting for distro packaging becauseunzipis usually a dependency that needs to be installed. Github offers both zips tarballs.More importantly it looks like the zip files are only for the latest repo state not for TAGs or a subset of patches.
Support for Zipping subsets of patches is already exposed by darcs: http://hackage.haskell.org/package/darcs-2.10.2/docs/Darcs-UI-Options-Flags.html#t:DarcsFlag
I could add a chevron to the right-hand side of the "download .zip" button to turn it into an (optional) dropdown menu. But the problem is the current URI scheme of:
http://<hostname>/<user>/<repo>/patch/<hash>does not reflect that there are many other ways to select patches or sets of patches.
- status set to open
I have implemented tar.xz and tar.gz
http://hub.darcs.net/maerwald/darcsden-patches/patch/316419f5195ca79770264d8aca11a5a074262a8b
This will need: - testing on windows - testing in general (are the tarballs ok?)
Thanks!
At present, though, I am quite reluctant to install this on darcs hub. It quadruples the load-generating routes for bots to hit, and for no real benefit that I can see. Who actually needs this ?
As explained, this is useful for distribution packaging, because zip imposes an additional dependency that might not be installed on bootstrapped linux systems.
I must still question: Do we have any actual distro packagers requesting this ? Do they actually want to use darcs hub for it rather than their own scripts ? Do we need to provide all of zip, tar, tar.gz, tar.xz ? What does github provide, and how do they do it without being DDOSed ?
Github provides .zip and .tar.gz afais. I don't know how they deal with DDOS and I don't see why this would considerably increase the chance. If you want to DDOS darc hub, I think you can already do that, no? But I don't know much about that.
- added tag in-progress
- added tag discussion
workin on that here: http://hub.darcs.net/maerwald/darcsden-dist
- added tag experimental