Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I push a reduced size mercurial repo after hitting 2 GB size limit?

Richard Behrens
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 20, 2018

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.

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 22, 2018

 

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

Richard Behrens
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 22, 2018

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?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events