Accessing closed branches is difficult with Heptapod
Summary
Closed branches are not easily accessible from Heptapod since the related issue #93 (closed) was resolved. In particular:
-
It appears not to be possible to download closed branches. For example, the following fail since branch 0.9 was closed by commit 93981e1c
- https://hg.iscimath.org/forbes-group/persist/-/tree/branch/0.9
- https://hg.iscimath.org/forbes-group/persist/-/archive/branch/0.9/persist-branch-0.9.tar.bz2
This works for branches that have not been closed:
- https://hg.iscimath.org/forbes-group/persist/-/tree/branch/2.0
- https://hg.iscimath.org/forbes-group/persist/-/archive/branch/2.0/persist-branch-2.0.tar.bz2
The difficulty this causes for us is that these tarballs were available on Bitbucket, and we were relying on this to provide version-specific access through a URL and the pip
--find-links
option. Now this fails. -
These branches are invisible in the Heptapod UI. This is probably fine, but it would be useful if they could be explicitly referenced i.e. with https://hg.iscimath.org/forbes-group/persist/-/tree/branch/0.9.
-
Mirroring does not push these branch tags to git, so, although the commits exist in the mirrored git repo (e.g. github commit 93981e1c), there is no way to refer to them from the cloned git repo like there is from the cloned mercurial repo.
hg update --closed 0.9
for example. -
I don't see an easy workaround to re-open these branches so that our previous
--find-links
usage will work with Heptapod.
Our previous workflow is obviously not in tune with the current Heptapod workflow: we should probably have just left the branches open as dangling heads. Still, it seems like it could be useful if thinks like the direct tarball downloads could work and maybe if the branch names could somehow be pushed to git. (Is there an equivalent to --closed
for git branches? Sorry: don't know that much about git internally.)
Any suggestions for how to easily repair these repos would be appreciated.