First, create a DropBox folder for your Hg repository. I've got a project called Places, so I created a directory ./Projects/HGRepositories/Places

Inside your project directory, right click anywhere, then go TortoiseHg->Create Repository Here

Follow the instructions. The destination directory should be the same as the one with your project.

After you've finished initializing your repository, you should have the .hg folder and the .hgignore file added to your directory.

Set up the ignore list.

Copy the entire project directory over to your DropBox directory

Next, from your project directory, open the Hg Repository Explorer.

From the Repository Explorer, Commit your project.



Now, push your changesets to the DropBox repository.

And there you go. Your repository now has backup and is available from any computer that has access to your DropBox folders. In order to check out at another computer. Create an empty folder. Inside it, right click and choose TortoiseHg->Clone and clone the repository from the shared DropBox folder.
3 comments:
Why not use Bitbucket (they have both private and public repositories for free)?
Haven't ran into any troubles myself (since I'd rather use Bitbucket), but there are some drawbacks to this setup described in this post on StackOverflow:
http://stackoverflow.com/questions/1964347/mercurial-and-i-guess-git-with-dropbox-any-drawbacks
You can also check
c tutorial for beginners with examples
for the solution.Thanks
Post a Comment