combining repos

Dustin Sallings dustin at spy.net
Tue Dec 4 00:36:55 CST 2007


On Dec 3, 2007, at 21:32, j w wrote:

> Suppose I have two repos, A and B.
> Now suppose I want to re-organize my directories somewhat, and as a
> result, I want B to be a subdirectory of A.
> So in the end I want one repo, A, which has subdir A/B containing
> everything from the old B.
> Of course, I want to maintain all history of B.


	cd b
	mkdir b
	hg mv * b
	hg commit -m 'moved everything under b'
	cd ../a
	hg pull -f ../b
	hg merge
	hg commit -m 'merged b into a'

-- 
Dustin Sallings





More information about the Mercurial mailing list