How do I bundle Mercurial on Linux?
Created originally on Bitbucket by Andrei Dziahel
I'm a maintainer of Mercurial and TortoiseHG packages for OpenSUSE. Currently TortoiseHG depends on Mercurial of current and previous version, hence the upper bound requirement in the package spec, like this:
Requires: mercurial < 4.9 Requires: mercurial >= 4.8
Unfortunately that prevents users from installing new Mercurial when TortoiseHG haven't been updated yet. True, it actually depends on the version of TortoiseHG package I'm maintaining, but sometimes, when TortoiseHG release lags behind Mercurial release, there's nothing to build a package from, right?
Removing the upper bound requirement is also not a way out, since upgraded Mercurial renders TortoiseHG unusable.
So here's the question: how do I bundle Mercurial into a Linux build, so THG would not depend on system Mercurial installation and would function even in case of system Mercurial upgrade to incompatible version? I know it is already done on Windows, can we have it on Linux too?
Thank you in advance.