migrate repository from mercurial to git
Mads Kiilerich
mads at kiilerich.com
Fri Dec 10 18:17:29 UTC 2021
On 12/10/21 18:14, Uwe Brauer wrote:
>> On 12/10/21 12:29, Łukasz Michalski wrote:
>>> Hi,
>>>
>>> I would like to migrate a repository myrepo from mercurial to git.
>>>
>>> I want to rename mercurial repository to myrepo_old and use orginal name for new git repository.
>>>
>>> Is it enough to rename mercurial repository on disk and copy new one under original name? Old one can have some closed pull requests.
>
>> Yes, that should work and be safe, especially if you do the renaming
>> and repo creation in Kallithea. The new repo will be "different" from
>> the old one, even if the name is reused. Access rules and PRs etc will
>> be different.
> I am deeply confused. Are you saying kallithea can convert a mercurial repository to git without any further set up?
No, that's not what I'm saying. Kallithea does not have conversion built in.
I do not see Łukasz asking about the actual conversion process. I'm sure
he is aware of the options and trade-offs and can make the conversion
manually. He is only asking about how he can put a new Git repo in the
place where the Mercurial repo used to live.
It could be very interesting to develop a hosting solution that was
completely VCS agnostic. Where the immutable main branches of each
"repository" were exposed in "all" kinds of VCSs, so users and
contributors could work and submit changes in any way they want. But I
doubt anybody wants to invest enough to make that happen ;-)
It would be more simple to integrate external conversion tools so a
click off a button in Kallithea would make a one-shot conversion to
another repo format .... with some chosen handling of the fundamental
VCS differences.
/Mads
More information about the kallithea-general
mailing list