English 中文(简体)
How can I organize/use Mercurial in a multi-location, non-networked environment?
原标题:
  • 时间:2009-11-10 13:59:51
  •  标签:
  • mercurial

My team has a local development network which is not physically connected to any outside network. This is a contractual obligation and CANNOT be avoided. We also have to coordinate with a team which located halfway across the country and, as previously implied, has no direct network connectivity to us. Our only method of transferring data involves copying data to a USB disk and sending via email/ftp/etc.

NOTE: Let s not discuss the network connection issue or the obvious security flaw with the USB disk access. These issues are non-negotiable.

We re still convincing the external team to use Mercurial (currently don t use ANY SCM). Assume for the rest of this question that they re using Mercurial. We re going to force their hand any day now.

We switched to Mercurial in hopes of being able to utilize the distributed nature to better sync w/ the external team. Internally, we re using Mercurial much like a central server SCM. Each developer clones from a master repo on your integration server. Changes are pushed/pulled from this central location.

Here lies the actual question content:

What is the best way to communicate changes to the remote team (assuming they re using a similar Mercurial setup to us)? Should I have a local master repo for local push/pull), and a local integration repo for remote push/pull? How can I best avoid complicated merge issues that will arise? If we use Mercurial bundles to push changes, who will do the merges and against which repository?

最佳回答

You can basically use it in exactly the same way as if you were online.

You just need to replicate the remote repo locally and unbundle every changeset they send you in it. You should never push your changes directly into the local-mirror (it should always reflect the state of the remote team).

Afterwards you decide what you want, doing merges on your side or on their side, it doesn t really matter.

问题回答

暂无回答




相关问题
Can I clone part of a Mercurial repository?

Is it possible to clone part of a Mercurial repository? Let s say the repository is quite large, or contains multiple projects, or multiple branches. Can I clone only part of the repository? E.g. in ...

Sync files in Two Different Repos using HG

I ve got a problem when I try to sync files in two different repos. What I want to do is: I ve got 2 repos A and B, and they share some common files, suppose they lie in A/docs/common/ and B/docs/...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

git for mercurial like git-svn

Hello is there a tool for git that allow to work with mercurial repositories F.e. for svn there is a git-svn package, that allows to clone/commit/update from svn and work in a git way.. So is there ...

Useful Mercurial Hooks [closed]

What are some useful Mercurial hooks that you have come across? A few example hooks are located in the Mercurial book: acl bugzilla notify check for whitespace I personally don t find these very ...

热门标签