freento
freento

Reputation: 2949

Put .hg or .hg/store out of the project folder for Mercurial

Is it possible to store .hg folder or .hg/store folder out of the project folder? For example my project is in /var/www/project and I want to put .hg (or .hg/store) folder to /mnt/myproject. As a result /var/www/project will not have .hg (or .hg/store) folder in it and /mnt/myproject will be the main repository folder.

The main reason for this that I have not very big diskspace in /var/www/project and want to put repository in mounted folder (on another server) - /mnt/myproject.

Upvotes: 1

Views: 226

Answers (1)

Ry4an Brase
Ry4an Brase

Reputation: 78330

You can do it with the Share Extension -- create the repo on a volume with space and then create a share of it where you'd like.

Really though, disk is approximately free now, you shouldn't have to resort to trickery like this.

Upvotes: 2

Related Questions