Enable mirroring mercurial codebases, by using git-cinnabar on clone and pull. #9019

Open
opened 2025-11-02 08:26:11 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @c4lliope on GitHub (Jun 1, 2022).

Feature Description

See git-cinnabar add-in command,
(or my mirror).

I use such a scheme manually,
so I can mirror mozilla's source code.

Screenshots

No response

Originally created by @c4lliope on GitHub (Jun 1, 2022). ### Feature Description See [`git-cinnabar`](https://github.com/glandium/git-cinnabar) add-in command, (or [my mirror](https://base.assembled.app/dependencies/git-cinnabar)). I use such a scheme manually, so I can mirror [mozilla's source code](https://base.assembled.app/dependencies/mozilla). ### Screenshots _No response_
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 08:26:11 -06:00
Author
Owner

@c4lliope commented on GitHub (Jun 5, 2022):

Here are rough commands I used during my clone:

alias g="git"
g clone git@base.assembled.app:dependencies/git-cinnabar

cd git-cinnabar/;
export PATH="$PATH:${PWD}"
make
cd ..

g cinnabar download # perhaps unnecessary, since you ran `make` earlier.
g cinnabar help
g clone hg://hg.mozilla.org/mozilla-central mozilla
@c4lliope commented on GitHub (Jun 5, 2022): Here are rough commands I used during my clone: ```bash alias g="git" g clone git@base.assembled.app:dependencies/git-cinnabar cd git-cinnabar/; export PATH="$PATH:${PWD}" make cd .. g cinnabar download # perhaps unnecessary, since you ran `make` earlier. g cinnabar help g clone hg://hg.mozilla.org/mozilla-central mozilla ```
Author
Owner

@c4lliope commented on GitHub (Jun 13, 2022):

Seems like this could go someplace around here:
https://github.com/go-gitea/gitea/blob/main/services/mirror/mirror_pull.go#L41

@c4lliope commented on GitHub (Jun 13, 2022): Seems like this could go someplace around here: https://github.com/go-gitea/gitea/blob/main/services/mirror/mirror_pull.go#L41
Author
Owner

@c4lliope commented on GitHub (May 9, 2023):

Hello! I'm migrating my Gitea and am realizing that the Mozilla repo I cloned ages ago hasn't been able to keep up as a mirror, because I used a one-off git-cinnabar command instead of setting up real mirroring.

Can someone recommend an approach for combining git-cinnabar into the mirroring process?

@c4lliope commented on GitHub (May 9, 2023): Hello! I'm migrating my Gitea and am realizing that the Mozilla repo I cloned ages ago hasn't been able to keep up as a mirror, because I used a one-off `git-cinnabar` command instead of setting up real mirroring. Can someone recommend an approach for combining `git-cinnabar` into the mirroring process?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9019