Lost my old mercurial repos! Help!
Asked by romainmg:

I would like to recover my private Mercurial HG repos. My Mercurial repos have no longer been accessible, and all be private. I'm quite desperate at this point.

Back in 2019 I thought Atlassian would "no longer support" Mercurial, not "delete all my code"!!!

[@Caroline R](/t5/user/viewprofilepage/user-id/3934006) I believed you managed to help someone in the same situation? Many many thanks.

-Romain


Answers:
author: Mark C
body: Hi [@romainmg](/t5/user/viewprofilepage/user-id/2259809),

Thank you for reaching out to the community.

Atlassian made a decision to move away from maintaining and supporting Mercurial repositories in 2019.  
This was announced in the community [sunsetting of Mercurial repositories](https://community.atlassian.com/t5/Bitbucket-articles/What-to-do-with-your-Mercurial-repos-when-Bitbucket-sunsets/ba-p/1155380) and on our [blog post](https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket).

Bitbucket Support team is no longer able to restore those repositories since Mercurial was fully removed from our platform along with HG repositories.

Any recovery of Mercurial repositories content will need to be from the local copies.

Regards,  
Mark C

comments: author: romainmg
body: Thanks for the reply. Is there not a difference between "not supporting" and "deleting"? I find this absolutely outrageous and frankly hard to believe. Atlassian decided to DELETE source code??? how is this possible?

Is there a way to get a copy of the files without the history?

Thanks Mark


author: Mark C
body: Hi [@romainmg](/t5/user/viewprofilepage/user-id/2259809)  

I completely understand that it may not have been the ideal situation for us to permanently delete repositories. We have carefully considered this decision, and unfortunately, we have decided to remove Mercurial support from Bitbucket Cloud and its API.

However, before taking this step, we provided a 2-year customer grace period specifically for repository recovery.

++**Timeline**++

* Back in 2019, we announced [sunset of Mercurial repositories](https://community.atlassian.com/t5/Bitbucket-articles/What-to-do-with-your-Mercurial-repos-when-Bitbucket-sunsets/ba-p/1155380) with our customers.
* On August 26, 2020 in our public blog post the team then [announced that Mercurial repos](https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket) will no longer be available for access.  
  "Mercurial features and repositories will be officially removed from Bitbucket and its API on July 1, 2020"
* As of March 30, 2022 support no longer exists for restoring and uploading these repositories as they have been officially deleted after a 2-year customer grace period

<br />

Similar to our response [here](https://community.atlassian.com/t5/Bitbucket-questions/Recovering-mercurial-repositories/qaq-p/2043391), If you are looking for a Mercurial repository that was public, all the public repos were archived by Software Heritage here:

* <https://bitbucket-archive.softwareheritage.org/>

We will not be able to meet any further requests for recovery of private HG repositories and users will need to recover those from local copies only.

<br />

Regards,  
Mark C  

<br />


Tags: bitbucket-cloud

cloud

mercurial