beginner question: networkless use of hg

Jamie Webb j at jwebb.sygneca.com
Mon May 19 10:56:22 CDT 2008


On 2008-05-19 11:22:22 Darrell Karbott wrote:
> Is it possible for developers without any network connection at all
> to collaborate using hg?  From what I can see in the docs it seems
> like you should be able to exchange changes (e.g. by USB key or some
> other means) using bundles, but then it seems like merging gets kind
> of tricky.

You could exchange bundles, but the easiest way would be to keep a
complete copy of your repository on the key and then push/pull as
normal. Effectively each key acts like a server.

Merging is always done within a single repo, so is unaffected
regardless of how you move changes about, networked or not.

> Is there a howto somewhere on best practices for networkless use of
> hg?

Probably not, because it's really no different (slower, of course...).

> Also is there any way I can explicitly keep hg from trying to contact
> remote machines?

Hg will not try to contact a remote machine unless you tell it to
(what machine would it want to contact?).

I have a feeling that you are assuming that Hg is a lot more like CVS
or Subversion than it actually is. Nothing about Hg supposes that a
networked central server exists.

/J


More information about the Mercurial mailing list