[core-workflow] Help needed: best way to convert hg repos to git?
Oleg Broytman
phd at phdru.name
Sat Feb 6 12:16:28 EST 2016
On Sat, Feb 06, 2016 at 05:57:47PM +0100, Petr Viktorin <encukou at gmail.com> wrote:
> On 02/06/2016 05:48 PM, Oleg Broytman wrote:
> > $ git remote add gh git at github.com:phdru/cpython.git
> >
> > $ git push --all gh
> >
> > See the result at https://github.com/phdru/cpython
>
> You might also want to try something like
>
> $ git repack -a -d -f --depth=250 --window=250
>
> after importing to decrease the size of the repository for everyone
> pulling from you.
>
> (Reference: https://gcc.gnu.org/ml/gcc/2007-12/msg00165.html)
See the discussion of this old and outdated message at PEP 103:
https://www.python.org/dev/peps/pep-0103/#database-maintenance
The recommended parameters for git repack are --depth=20 --window=250
See http://vcscompare.blogspot.ru/2008/06/git-repack-parameters.html
But yes, you're right, git gc/repack is very much recommended.
Oleg.
--
Oleg Broytman http://phdru.name/ phd at phdru.name
Programmers don't die, they just GOSUB without RETURN.
More information about the core-workflow
mailing list