Symbolic refs work in code snapshot links for git repositories, e.g. http://sourceforge.net/p/allura/git/ci/master/tarball, but not for Hg or SVN. They appear to partially work, in that a snapshot file is generated, but either the URL or the file name end up using the non-symbolic commit ID.
All three should probably be normalized to use the non-symbolic commit ID so that caching works properly (the code for "master" will change, so the cached allura-git-master.tar.gz file will be out of date), probably by making http://sourceforge.net/p/allura/git/ci/master/tarball redirect to the non-symbolic URL in case there is a push while waiting for the file to be complete.
We'll also want to make sure it integrates with [#5120] so that the Download Snapshot link uses the symbolic ref when viewing using a symbolic ref so that it's discoverable.
Related
Tickets:
#5120Created #318: [#6046] Make symbolic refs work for snapshots for Hg and SVN (2cp)
Related
Tickets:
#6046Please be aware of my updates in [#5120].
Related
Tickets:
#5120Closed #318.
je/42cc_6046
The Download Snapshot link is broken when viewing a subdirectory on a repo.
Created #350: [#6046] The Download Snapshot link is broken when viewing a subdirectory on a repo (1cp)
Related
Tickets:
#6046Keep in mind, in case it wasn't clear, the Download Snapshot button should still create a snapshot of the entire repo when used from a subdirectory; just the link is broken due to the way the request.path is parsed.
Or do we? For most SVN repos, you only want trunk/ or tags/x.y.z/ and not all tags & branches. Possibly an easy solution is to use the current dir for SVN at least.
Sorry, I do think it would be a good idea to support that feature, but I meant that I didn't intend to include it in the scope of this ticket.
Closed #350.
je/42cc_6046
It was clear. Thanks for clarifications, though.