Can you ‘push’ to network share using Mercurial on 64bit Windows 7?

Pushing to a network share is possible, but not recommended by the Mercurial team.

See the “shared disk” part in Publishing Repositories in the Mercurial wiki:

generally restricted to intranets, not
generally recommended
due to general
issues with network filesystem
reliability

At my workplace, we are keeping our HG repositories on a network share (on a Windows 2003 server) as well because it was the easiest to set up. We’re doing this for about one and a half year now, and we never had problems like yours.

But at home, I have a network share on a NAS (it’s accessible from Windows and it looks and feels like a Windows share, but the NAS actually runs on Linux). I had no problems for a long time, but since a few weeks I’m having similar errors like you (with a different error message though).
I posted this on the Mercurial bug tracker, and I was told that my problem is probably caused by the fact that my NAS runs on Linux, because they don’t know of any problems with real Windows shares:

On real Windows shares (served by
Windows) there doesn’t seem to be a
problem (never heard of others having
problems doing that).

So maybe your problem is caused by something similar as well.
What kind of Windows share is it that you try to push to? Is it really on a Windows machine?

Leave a Comment