How to avoid Mercurial repo corruption when sharing a repository between Windows/Mac?

Posted by Stabledog on Stack Overflow See other posts from Stack Overflow or by Stabledog
Published on 2010-05-27T13:27:13Z Indexed on 2010/05/27 13:31 UTC
Read the original article Hit count: 176

Filed under:
|
|

I have several projects which are shared between Windows and Mac. The dev machine is a Mac running Parallels: the files are stored on the Mac side, and the source is shared to the Windows side. This is very convenient, as I can switch back and forth between Windows and Mac tools rapidly without having to sync files.

Recently I switched from Subversion to Mercurial, and now I'm having problems with the Mercurial repository becoming corrupt if I use the Windows tools to add/update, etc. I have to be very careful about which operations on the Windows side are safe (mainly the read-only stuff) and of course I forget rather regularly.

Does anybody know why the corruption occurs? I thought Mercurial repositories were platform-agnostic. Any ideas how to prevent it without removing the Windows tools entirely?

© Stack Overflow or respective owner

Related posts about mac

Related posts about mercurial