Jader Dias
Jader Dias

Reputation: 90465

How to serve my local Mercurial repository?

I created a repository with TortoiseHg. Is it possible to share it with other machines? Or do I need to install another application?

Upvotes: 2

Views: 3259

Answers (2)

Frank Shearar
Frank Shearar

Reputation: 17132

Right click your repository, TortoiseHG, Web Server menu option. That'll pop up a dialog, and you just hit the Start button.

Say your start port's 8000. Then on your other machines, right click in the folder where you want the new clone, select TortoiseHG, Clone a Repository. In the Source Path, put "http://originalmachine:8000/" and hit the "clone" button.

Web Server's great for temporary sharing. If you want something more persistent, that doesn't require a task sitting in your task bar, look here for instructions on how to get hgwebdir set up on Windows (but this requires Mercurial, rather than TortoiseHg).

Upvotes: 7

Blorgbeard
Blorgbeard

Reputation: 103437

Yep, just share the folder and have the other machines push/pull.

You can also right-click your repo and choose "Web server" under the TortoiseHG menu. This serves the repo over TCP/IP.

Upvotes: 2

Related Questions