[core-workflow] Help needed: best way to convert hg repos to git?

Brett Cannon brett at python.org
Sat Feb 6 14:42:47 EST 2016

FIrst off, thanks to everyone who has stepped out and started running
various approaches to test them out! Any and all help is appreciated since
there are a lot of parts to this transition and I definitely don't want to
do it on my own (especially since Python 2.7 would have its last release by
the time I would finish with all the work).

Second, does anyone -- or group of people -- want to own this and figure
out what to try out, keep track of what has been tried, come up with some
way to evaluate the results (both for accuracy in the conversion but also
if there is some way to say one is better than another), and come back to
the list with a solution? All I ask is you try to do it in the open
(whether it's by a Google Doc that's open to the public for comment or a
GitHub repo, I don't care) so people who want to help can? It seems there
are people definitely willing to try out the tools and report back, but I'm
looking for someone/people to organize the effort and come back to me with
a thought-out solution so I don't have to. :)

On Sat, 6 Feb 2016 at 09:16 Oleg Broytman <phd at phdru.name> wrote:

> 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.
> _______________________________________________
> core-workflow mailing list
> core-workflow at python.org
> https://mail.python.org/mailman/listinfo/core-workflow
> This list is governed by the PSF Code of Conduct:
> https://www.python.org/psf/codeofconduct
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/core-workflow/attachments/20160206/a0ead9d8/attachment-0001.html>

More information about the core-workflow mailing list