gitea icon indicating copy to clipboard operation
gitea copied to clipboard

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

Open c4lliope opened this issue 3 years ago • 3 comments

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

c4lliope avatar Jun 01 '22 21:06 c4lliope

Here are rough commands I used during my clone:

alias g="git"
g clone [email protected]: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 avatar Jun 05 '22 01:06 c4lliope

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

c4lliope avatar Jun 13 '22 15:06 c4lliope

+1 from me. I need to track https://hg.nginx.org/nginx-quic but this is mercurial unfortunately.

istiak101 avatar Aug 02 '22 21:08 istiak101

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 avatar May 09 '23 06:05 c4lliope