Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issues with using free Mercurial hosting like Bitbucket

I'm using Mercurial as my SCM, mainly because I like the ability to commit changes to a project even while offline. I'm going to be moving PCs soon and so I decided to look into finding some free Mercurial repo hosting so I don't lose my data. I signed up for a Bitbucket account and I noticed that they offer space for only a single private repository with their free accounts. Wouldn't that mean that some of my stuff might end up publicly available? As in, anyone can download and use it in their projects?

like image 840
Enrico Tuvera Jr Avatar asked Dec 14 '09 13:12

Enrico Tuvera Jr


People also ask

Does Bitbucket support Mercurial?

Bad news for Mercurial users: Atlassian has removed support for the Mercurial version control system from Bitbucket Cloud and its API. Mercurial repositories and features were officially removed from Bitbucket and the API on July 1, 2020.

Is Mercurial dead?

On February 1, 2020, users will no longer be able to create new Mercurial repos. Developers have mused about the death of Mercurial for years as Git adoption has soared, despite Mercurial's ongoing use at companies like Facebook, Google, and Mozilla.

Does bitbucket use Git or Mercurial?

Bitbucket, owned by Atlassian, is a web-based version control repository hosting service, for source code and development projects. It has used Mercurial since the beginning in 2008 and then Git since October 2011.


2 Answers

Yes, BitBucket only offers one private repository for free.

Edit: See the comments below, BitBucket now offers as many private repos as you want, the restriction on the free plans is a maximum of 5 users accessing these private repos.


However, if you're just worried about transferring the projects to your new machine, I think BitBucket is overkill. Will you be in possession of both machines at once, even for a short period of time?

If so, I would just use hg serve in each project directory (one at a time) of the old machine and hg clone http://ip.of.old.machine:8000/ projectname to clone the changes onto the new machine.

EDIT: If you're looking for a way to back up without sharing the repos publicly you could get a Dropbox account and clone a copy of each repo to the Dropbox folder on your local machine. Whenever you push changes they'll get synced up to Dropbox automatically.

If you computer catches on fire and you replace it you just install Dropbox and then clone from the repos in the Dropbox folder to your preferred location.

I'm not sure how well this would work if you want to use the Dropbox copy of the repo on multiple platforms (from a Windows box and a Linux box, for example).

like image 166
Steve Losh Avatar answered Sep 23 '22 22:09

Steve Losh


run hg bundle --all in all your repositories, stuff the bundles somewhere (like a usb stick), hg unbundle them on the new machine.

like image 20
just somebody Avatar answered Sep 23 '22 22:09

just somebody