Am Donnerstag, 13. August 2015, 23:01:07 schrieb Bram Moolenaar:
>
> Markus Heidelberg wrote:
>
> > OK, then I would document a procedure for local HG to Git conversion and
> > create a script for Git repository cleanup.
>
> I did:
>
> % mkdir vim-git
> % cd vim-git
> % git init
> % hg-fast-export -r ../hg-vim74-clean
On Arch Linux I had to set PYTHON=python2 for this command because the
default "python" is a symbolic link to python3.
> % git checkout
And then, as written in my previous mail, additionally:
% git repack -a -d -f
% git gc
I guess you got the hg-fast-export from one of these locations?
http://repo.or.cz/w/fast-export.git
https://github.com/frej/fast-export
> Looks like it worked. I have replaced the "vim" repository on github
> with the cleaned up and locally converted repository.
> Please have a look: https://github.com/vim/vim
I aborted the clone, despite not having to wait too long for it to
complete, but maybe you can create a new repo with the packfile
optimization applied.
>From a quick look online, it seems fine.
I saw you added the .gitignore already in the HG repo. I rather thought
of creating it as part of the cleanup based on .hgignore, then for the
whole history since addition of .hgignore. However, this can still be
done.
I'd also prefer to just removing the .hgignore from the history and
replacing it with .gitignore. What would that mean for the HG mirror,
Christian?
> I have commited one new patch on top of it to check if that works.
> It looks OK, but I got a long list of messages like this:
>
> ...
> * [new tag] v7-4-823 -> v7-4-823
> * [new tag] v7-4-824 -> v7-4-824
> * [new tag] v7-4-825 -> v7-4-825
> * [new tag] v7-4a -> v7-4a
> * [new tag] v7-4a-001 -> v7-4a-001
> * [new tag] v7-4a-002 -> v7-4a-002
> * [new tag] v7-4a-003 -> v7-4a-003
> ...
> * [new tag] v7-4b-019 -> v7-4b-019
> * [new tag] v7-4b-020 -> v7-4b-020
> * [new tag] v7-4b-021 -> v7-4b-021
> * [new tag] v7-4b-022 -> v7-4b-022
These messages occur for all the tags that have just been pushed.
> Perhaps the original push to github should have been followed by "push
> --tags" ? Not sure if it makes any difference doing this after another
> commit+push.
For the repository it doesn't make a difference if you forgot to push
the tags and do it later after unrelated commits. These are all
lightweight tags, just labels/pointers to a specific commit and not tied
to the history tree (DAG) at all.
The users would receive the missing tags with the next "git fetch".
> Please let me know if this looks OK. If yes then I'll do it for real
> this weekend.
What do you mean with real? Only publishing the HG cleanup?
Because for the Git cleanup I have to prepare the script first.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.