[Python-Dev] slow hg clone of python repo?

R. David Murray rdmurray at bitdance.com
Thu Apr 25 03:56:56 CEST 2013


On Wed, 24 Apr 2013 18:14:18 -0700, Eli Bendersky <eliben at gmail.com> wrote:
> On Wed, Apr 24, 2013 at 4:37 PM, Sean Felipe Wolfe <ether.joe at gmail.com>wrote:
> 
> > On Wed, Apr 24, 2013 at 4:24 PM, Guido van Rossum <guido at python.org>
> > wrote:
> > > It's a big repo. Patience.
> > >
> > > On Wed, Apr 24, 2013 at 4:17 PM, Sean Felipe Wolfe <ether.joe at gmail.com>
> > wrote:
> > >> Hey everybody, I'm trying to download the python sources with hg and
> > >> it's taking a while ... 7+ minutes so far and all I've got is
> > >> .../cpython and .../cypython/.hg . Any ideas as to why there's a
> > >> delay?
> > >>
> > >> I'm following the dev guide with this command:
> > >> hg clone http://hg.python.org/cpython
> > >>
> > >> I'm on Linux Mint 14, using the supplied hg version 2.2.2 . My
> > >> internet connection seems speedy enough.
> > >>
> >
> 
> Sean, 7 minutes doesn't sound bad. Keep in mind that with Hg, the whole
> repository is being cloned to your computer - all active (and inactive)
> branches, all history, etc. The up-side is that after this initial clone,
> subsequent pulls are pretty quick and all other operations are local and
> super fast (log, blame, etc.)

To further clarify what Eli said, "the whole repo" gets put into that
.hg directory *first*, and only at the end is a working directory
checkout done.  So all you will see is cpython/.hg until the very last
moment when it will start telling about the checkout being done.

--David


More information about the Python-Dev mailing list