Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial "server"

I've been using Mercurial for a little while, but mainly for my own use. Now though, I have a project I'm working on where two of us are building the same project, and we will probably be modifiying each other's files.

I would like to setup a Mercurial repository on a server, make that repository the "server", so my changes and the other editor's changes both push to that server (so basically the Subversion / CVS model); I like Mercurial though and don't want to switch to something like Subversion.

Here in my own network, everything is done on Linux, and my "server" has OpenSSH installed. So pushing my changes (I work on multiple computers) from one computer to the server is just a matter of "hg push"; the protocol used is SSH for transfering the changes.

The problem is that I use Linux, the server will be Windows (so no OpenSSH, right?) and the other editor will be using Windows too. As far as I know, the best way of working in Mercurial in these types of setups is for the repository to pull changes from the source, rather then the source pushing to the "server". I'm behind several firewall's (not entirely my network) and my computer won't be visible from the server, and I'm assuming the other editor will be behind a firewall too (so we can't just start up the local Mercurial HTTP server and get the "server" computer to pull from that).

What's the best way for both editors to get our changes to the server repository? (I should add that the server is a server on the Internet, so it is just as visible as something like google.com. It's a hosted Windows server, but I would probably have permission to install software if needed for this.)

like image 822
user85116 Avatar asked Apr 11 '09 13:04

user85116


People also ask

What is a Mercurial server?

Mercurial is a free, distributed source control management tool. It efficiently handles projects of any size and offers an easy and intuitive interface.

What is Mercurial used for?

Mercurial is a free, distributed version control system. It's also referred to as a revision control system or Mercurial source control. It is used by software development teams to manage and track changes across projects.

Is Mercurial dead?

Mercurial isn't dead. But Atlassian's Bitbucket support for Mercurial is. There are many teams who still have Mercurial repositories. So, Mercurial is very much alive.

What is the difference between Git and Mercurial?

Mercurial is a distributed revision control tool for software developer and it support Microsoft window. Git is distributed system which track the change in source code in which each developer has his repository.


1 Answers

I believe reading the project's documentation is a nice start: https://www.mercurial-scm.org/wiki/PublishingRepositories.

like image 150
Milen A. Radev Avatar answered Oct 06 '22 12:10

Milen A. Radev