Explain the slow clone of Mercurial?

Is there a way to determine why a given repository takes a long time to clone?

I assume that at some point we added some large files, which we then deleted, and downloading this story probably leads to the clone being so slow.

We are not sure what files they are, and if we could (permanently) delete them from the repo.

Any ideas?

+5
source share
2 answers

you cannot change the repo history, but you can create a new repo with a selective history in it using hg convert, but this will require that everyone switch to a new repo, which may or may not be a problem for you, depending on how the project is launched.

hg convert , filemap

exclude path/to/really/big/file

hg convert --filemap filemap oldrepo newrepo

, :

hg log --template "{file_dels} "

,

+4

.hg/store/data , .

0

All Articles