Please include this patch to add sync support for mecurial. It is based on the git module as they are very close. git clone -> hg clone git pull -> hg pull -u Mercurial does not support shallow clones, so there is no consideration for depth.
Created attachment 514406 [details, diff] 0001-Add-mercurial-sync-support.patch Add mercurial support
I join Brian Evans in his request. Please commit this patch. Mercurial has many users, including me. As Layman supports Mercurial, Portage should support it too :)
The patch looks reasonable offhand, but I wonder if it makes sense to add support for signature verification: https://www.mercurial-scm.org/wiki/GpgExtension
I can't say much about gpg. I use it rarely.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=6a7d42b66a51a6438068c685c8df37d0872e8bf2 commit 6a7d42b66a51a6438068c685c8df37d0872e8bf2 Author: Brian Evans <grknight@gentoo.org> AuthorDate: 2018-01-11 17:37:47 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2020-09-20 08:18:32 +0000 Add mercurial sync support Bug: https://bugs.gentoo.org/644246 Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/portage/const.py | 1 + lib/portage/sync/modules/mercurial/__init__.py | 39 ++++++ lib/portage/sync/modules/mercurial/mercurial.py | 174 ++++++++++++++++++++++++ lib/portage/tests/sync/test_sync_local.py | 67 ++++++++- man/portage.5 | 24 +++- 5 files changed, 303 insertions(+), 2 deletions(-)
Thank you so much!
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=862266358f01efa90c12d182d1f85a3014b80439 commit 862266358f01efa90c12d182d1f85a3014b80439 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2020-09-21 05:35:06 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2020-09-21 05:59:31 +0000 sys-apps/portage: Bump to version 3.0.8 #404157 emerge: --keep-going support pkg_pretend failures #644246 Add mercurial sync support #710432 emerge: Enable parallel-fetch during pkg_pretend #743115 emerge: Fix slot conflict backtracking to group similar missed updates into a single backtracking try #743631 emerge: Fix slot conflict backtracking to prefer choices that satisfy all dependencies Bug: https://bugs.gentoo.org/739718 Bug: https://bugs.gentoo.org/404157 Bug: https://bugs.gentoo.org/644246 Bug: https://bugs.gentoo.org/710432 Bug: https://bugs.gentoo.org/743115 Bug: https://bugs.gentoo.org/743631 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Zac Medico <zmedico@gentoo.org> sys-apps/portage/Manifest | 1 + sys-apps/portage/portage-3.0.8.ebuild | 267 ++++++++++++++++++++++++++++++++++ 2 files changed, 268 insertions(+)