<p>We've got two developers on the same closed (ugh, stupid gov) network, Another developer a couple minutes drive down the road, and a fourth developer half-way across the country. E-Mail, ftp, and removal media are all possible methods of transfer for the people not on the same network.</p>

<p>I am one of the two closed network developers, consider us the "master" location.</p>

<p>What is the best Mercurial setup/pattern for group? What is the best way to trasmit changes to/from the remote developers? As I am in charge, I figured that I would have to keep at least one master repo with another local repo in which I can develop. Each other person should just need a clone of the master. Is this right? I guess this also makes me responsible for the merging? </p>

<p>As you can see, I'm still trying to wrap my head around distributed version control. I don't think there is any other way to do this with the connectivity situation.</p>

[{'answer_id': 4663, 'author': 'basszero', 'author_id': 287, 'author_profile': 'https://Stackoverflow.com/users/287', 'pm_score': 0, 'selected': False, 'text': '<p>Correct. The only way anything makes it onto the closed network is via flash drive.</p>\n'}, {'answer_id': 4712, 'author': 'nlucaroni', 'author_id': 157, 'author_profile': 'https://Stackoverflow.com/users/157', 'pm_score': 2, 'selected': True, 'text': '<p>The users outside the network can make <a href="http://hgbook.red-bean.com/hgbookch12.html#x16-26800012.1" rel="nofollow noreferrer">patches</a>, and/or use <a href="http://hgbook.red-bean.com/hgbookch14.html#x18-32100014.4" rel="nofollow noreferrer">email</a> to send the updates to the main repo or someone, like yourself to merge them. The other internal people can have local copies, like yourself and do merges --but if you are having these out of network patches, it might be better that one person deal with them so nobody gets confused, but that\'s something you\'d have to consider yourself.</p>\n\n<p>Syncing the other way, you\'d create a patch, and them email or get a flash drive to the remote developers to patch their system. You\'re going to need some good communication in the team man, I am thankful I\'m not in your shoes.</p>\n\n<p>Those are my only suggestions --well, the obvious, get them a VPN connection! I\'d love to hear how it goes, what plans stabilize into a weekly groove, et cetera. </p>\n'}, {'answer_id': 900172, 'author': 'Martin Geisler', 'author_id': 110204, 'author_profile': 'https://Stackoverflow.com/users/110204', 'pm_score': 2, 'selected': False, 'text': '<p>Patches are a simple and versatile solution.</p>\n\n<p>For moving around larger groups of changes (especially binary changes and merges), Mercurial offers binary bundles. A bundle is basically the binary stuff that is sent on the network when you do <code>hg push</code>, but here it is captured in a file.</p>\n\n<p>Let\'s imagine I have gotten a clone somehow (by flash drive, DVD, etc.). Call it <code>upstream</code>. I then make a second clone, call it <code>devel</code>. I do all my development in <code>devel</code> and make lots of commits, merges, etc. Since Mercurial is distributed I can do all this offline.</p>\n\n<p>To see which changesets are missing in <code>upstream</code> I do</p>\n\n<pre><code>% hg outgoing ../upstream\n</code></pre>\n\n<p>When I have something to send, I can use</p>\n\n<pre><code>% hg bundle changes.hg ../upstream\n</code></pre>\n\n<p>to get a binary compressed file which contain the changesets including all their meta data. I can then burn this file on a CD and send it by mail...</p>\n\n<p>The recipient of the bundle can do</p>\n\n<pre><code>% hg incoming changes.hg\n</code></pre>\n\n<p>to see the changeset list and</p>\n\n<pre><code>% hg pull changes.hg\n</code></pre>\n\n<p>to unpack and add the changesets to his repository. He will then most likely have to merge -- this is exactly as if he had pulled directly from your repository over HTTP or SSH.</p>\n\n<p>Note, the <code>upstream</code> repository is only used as a convenient way to remember which changesets are already found in the upstream repository. You can also just jot down the changeset ID and use <code>hg bundle --base</code> when bundling to specify the base (common) changeset. See <code>hg help bundle</code> or <a href="http://www.selenic.com/mercurial/wiki/Bundle" rel="nofollow noreferrer">look in the wiki</a>.</p>\n'}]
['https://Stackoverflow.com/questions/4617', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/287/']