two repositories sharing the same store?

Sean Russell hg at ser1.net
Tue Jul 29 12:22:11 UTC 2008


On Tuesday 29 July 2008 08:18:21 am Sean Russell wrote:
> > 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).
...
> 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):

Heh... I just thought of an easier way:

	# project1 is your first, existing, working directory
	mkdir project2
	cd project2
	ln -s ../project1/.hg .hg
	hg up -C tip

--- SER



More information about the Mercurial mailing list