I followed the instructions at Reduce size of Mercurial repository and I now have a slimmed down version of the repo -- but only locally. Now I need to push the slimmed down version to Bitbucket. The instructions at the above link say "You can then check in the hgRepoAfterConversion repository," but they don't say HOW to do that! I tried this:
I added a .hg/hgrc file to the hgRepoAfterConversion with
[paths]
default = https://bitbucket.org/..... (my organization and repo name)
Then:
hg push --force
But the push was still not allowed because the repository is in read-only mode after hitting the 2 GB size limit.
Hi Richard, welcome to the Community :)
For mercurial this won't be as straightforward as it is for Bitbucket, we have a workaround at Reduce size of mercurial repository.
These basically suggests creating a new repo with the lowered size
rename it to repo-old and use hg convert to remove the large files. This will change the hashes and can be a drastic measure but it's currently what we suggest to both git and hg repos.
Hope that helps, let us know if you need further assistance!
Kind regards,
Ana
Thanks for helping, @Ana Retamal! I have already used hg convert and created a smaller version of the repo on my local hard drive. The problem is how to get it into Bitbucket. Do I have to create a new repo on Bitbucket with the smaller version under a new name, or is there a way to keep using the same repo name, but replace it with the trimmed down version?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.