two repositories sharing the same store?
Sean Russell
hg at ser1.net
Tue Jul 29 07:18:21 CDT 2008
On Monday 28 July 2008 04:17:27 pm Alpár Jüttner wrote:
> > As you add changesets to the clones and push/pull them back and forth,
> > the .hg repositories will begin to contain duplicates which are not
> > hardlinked.
>
> Well, it is not my question, but the first (and probably more important)
> part of the question is about how to synchronize the repos automatically
> (without explicitly pushing the changesets).
I don't think you can *officially* have two workspaces automatically reflect
each other. There will always be a pull/merge series of steps there if you
use pure Mercurial-isms.
What you want is two different workspaces to share the same .hg directory.
You could try *not* cloning, but symlinking the .hg directory (and any
related .hg* files):
# Working dir 1 is project1:
cp -pvr project1 project2
cd project2
rm -rf .hg*
ln -s ../project1/.hg .hg
That might get you to where you want to be.
--- SER
More information about the Mercurial
mailing list