How to tell Mercurial to never create hard links

Posted by scrapdog on Server Fault See other posts from Server Fault or by scrapdog
Published on 2010-03-29T20:17:32Z Indexed on 2010/03/29 20:23 UTC
Read the original article Hit count: 130

Filed under:
|

I am planning to use Mercurial in the near future on some projects. These projects will normally reside in a directory on my Windows machine, but I will be sharing these directories using VirtualBox so I can work on them directly from within Linux.

I understand that Mercurial will sometimes create hard links when cloning repositories. I'm not sure how a VirtualBox shared directory handles these hard links (or if it even can), so I'd rather just tell Mercurial to never attempt to make hard links and always make a copy.

My question: how do I globally disable Mercurial from hard linking?

(Although if someone has gotten Mercurial and VirtualBox shared folders to work nicely with hard linking, I'd like to hear about it!)

© Server Fault or respective owner

Related posts about mercurial

Related posts about virtualbox