I want to have a Mercurial repository set, but instead of having the
.hg/ directory under the repository tree, I would love to move it somewhere away (like to other partition) from working copy.
Is it possible to do in such a way?
There's no way to do exactly what you want. The closest would be to have a symlink
Since Mercurial 1.3, you can use the share extension to indirectly do what you want. Start by enabling the extension by adding the following to
Then create a normal repository on the partition where you want the
Go to the place where you want the working copy to be and create a shared repository:
This creates a
The share extension works on all platforms where Mercurial runs (Windows, Mac OS X, Linux, ...) since the "symlink" is done internally by Mercurial, not via the filesystem.