I agree with Adrian's response, but will add that writing an extension that
disables local hard-link clones should be quite simple.  The mercurial
project might even accept a patch for making the feature optional.

see http://mercurial.selenic.com/wiki/HardlinkedClones

This may work in your mercurial.ini file:

[defaults]
clone = --pull


On Fri, Dec 7, 2012 at 7:13 AM, Boggess, Rod <[email protected]>wrote:

> Perhaps those with more experience than I will correct me here, but I
> don’t believe there’s a setting to globally disable hard linking. However,
> those links should only happen when you clone locally: that is, if you’re
> cloning from and to the same drive. So don’t, just copy instead.****
>
> ** **
>
> If you wanted to make software changes, though, it is open source and you
> can make a custom build – there’s no source to purchase, Mercurial is an
> open source project. Of course, you’ll still have to understand the
> software source well enough to disable the creation of hard-links. I’m not
> familiar with the source, so I can’t tell you if that’s as simple as
> commenting out a couple lines and rebuilding, or deeply integrated code
> that requires a thorough understanding of the Windows API.****
>
> ** **
>
> *From:* ALEX WYKEHAM [mailto:[email protected]]
> *Sent:* Friday, December 07, 2012 6:13 AM
> *To:* [email protected]
> *Subject:* [thg] Preventing hard-link creation****
>
> ** **
>
> Hi everyone,****
>
> ** **
>
> A colleague and I recently started using TortoiseHG at work (we’re
> statistical analysts) to keep track of our projects (Matlab and R mainly),
> and ran into an issue.  The office runs a Disaster Recovery System (made by
> Neverfail) which apparently crashes whenever a hard link is written to any
> of the network drives, which we discovered while I was showing my colleague
> how to use it.  After talking to our systems guy, the DRS doesn’t look like
> it’ll be updated to fix this any time soon, so the only way we’ll be able
> to continue using Mercurial is if we can guarantee that it will never try
> to write a hard link.  ****
>
> ** **
>
> *Short of patching the source, does anybody know of a way to ensure that
> Tortoise will never try to create a hard link?  I’m still not even sure
> which function was to blame the first time as we didn’t clone anything,
> just a load of merging, updating, committing, rolling back etc.*
>
> ** **
>
> Any help would be much appreciated; I really don’t want to have to stop
> using this tool!****
>
> * *
>
> *Alex*****
>
> ** **
>
> RECORD CURRENCY MANAGEMENT LEGAL DISCLAIMER
> The information in this e-mail and any attachments is CONFIDENTIAL and
> intended solely for the use of the addressee. If you have received this
> message in error please return it to the sender or to 
> [email protected] delete the e-mail and destroy any copies of it. Any 
> unauthorised use
> of this information is prohibited and may be unlawful.****
>
> Please report any queries as soon as possible. A failure to reply will be
> deemed an acceptance of the data supplied. All information should be read
> in conjunction with the Disclosures and Legal Statements document which can
> be obtained on request or accessed online here
> https://clients.recordcm.com/DisclosuresLegalStatement.pdf. ****
>
> Although reasonable steps are taken by Record to reduce the risk of virus
> contamination all liability is excluded to the extent permitted by law for
> any damage resulting from software viruses. You should therefore carry out
> your own virus checks before opening any attachment.
> Record Currency Management Ltd is authorised and regulated by the
> Financial Services Authority in the UK and registered with the Securities
> and Exchange Commission in the US
> Record Currency Management Limited is a limited company registered in
> England and Wales under company number 1710736 and whose registered address
> is:
> MORGAN HOUSE, MADEIRA WALK, WINDSOR, BERKSHIRE, SL4 1EP, UK
> TEL 44 (0) 1753 852222 FAX : 44 (0) 1753 852224****
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> Tortoisehg-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss
>
>


-- 
Steve Borho
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Tortoisehg-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

Reply via email to