Nick Heiner
Nick Heiner

Reputation: 122392

Mercurial: How to set it up on my own server?

I've got a server and I want to use Mercurial to coordinate a project. Can I just make a repo, put it on the server, and have everyone else clone it, then push/pull from it? Is there some way to password protect it?

Upvotes: 2

Views: 533

Answers (2)

Jason Webb
Jason Webb

Reputation: 8020

Depending on how many people you have using the repository, you can just use a network share to push and pull from (eg: \\myserver\repositories\myproject\). We have been doing this internally for some time with no issues, however we only have 3 people who ever access the repositories. If you have more then you may consider doing what Matthew Flaschen says and use a publishing method.

Upvotes: 1

Matthew Flaschen
Matthew Flaschen

Reputation: 284786

Yes. The wiki has a good breakdown on the various mechanisms. hgweb and hgwebdir (which I've used) are probably the simplest. push is off by default, but can be enabled. They're simple Python scripts that can use Apache for authentication.

Upvotes: 3

Related Questions