Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644246 - Add mercurial sync support
Summary: Add mercurial sync support
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
Keywords: InVCS
Depends on:
Blocks: 240187 739718
  Show dependency tree
Reported: 2018-01-11 17:51 UTC by Brian Evans (RETIRED)
Modified: 2020-11-22 07:16 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---

0001-Add-mercurial-sync-support.patch (0001-Add-mercurial-sync-support.patch,7.64 KB, patch)
2018-01-11 17:52 UTC, Brian Evans (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Evans (RETIRED) gentoo-dev 2018-01-11 17:51:07 UTC
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.
Comment 1 Brian Evans (RETIRED) gentoo-dev 2018-01-11 17:52:54 UTC
Created attachment 514406 [details, diff]

Add mercurial support
Comment 2 Alexey Mishustin 2020-09-17 18:05:14 UTC
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 :)
Comment 3 Zac Medico gentoo-dev 2020-09-17 18:10:45 UTC
The patch looks reasonable offhand, but I wonder if it makes sense to add support for signature verification:
Comment 4 Alexey Mishustin 2020-09-17 18:48:35 UTC
I can't say much about gpg. I use it rarely.
Comment 5 Larry the Git Cow gentoo-dev 2020-09-20 22:02:13 UTC
The bug has been referenced in the following commit(s):

commit 6a7d42b66a51a6438068c685c8df37d0872e8bf2
Author:     Brian Evans <>
AuthorDate: 2018-01-11 17:37:47 +0000
Commit:     Zac Medico <>
CommitDate: 2020-09-20 08:18:32 +0000

    Add mercurial sync support
    Signed-off-by: Zac Medico <>

 lib/portage/                            |   1 +
 lib/portage/sync/modules/mercurial/  |  39 ++++++
 lib/portage/sync/modules/mercurial/ | 174 ++++++++++++++++++++++++
 lib/portage/tests/sync/       |  67 ++++++++-
 man/portage.5                                   |  24 +++-
 5 files changed, 303 insertions(+), 2 deletions(-)
Comment 6 Alexey Mishustin 2020-09-20 22:23:19 UTC
Thank you so much!
Comment 7 Larry the Git Cow gentoo-dev 2020-09-21 05:59:39 UTC
The bug has been referenced in the following commit(s):

commit 862266358f01efa90c12d182d1f85a3014b80439
Author:     Zac Medico <>
AuthorDate: 2020-09-21 05:35:06 +0000
Commit:     Zac Medico <>
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
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: Zac Medico <>

 sys-apps/portage/Manifest             |   1 +
 sys-apps/portage/portage-3.0.8.ebuild | 267 ++++++++++++++++++++++++++++++++++
 2 files changed, 268 insertions(+)