Combining repos

Steve Greenland steveg at moregruel.net
Thu Jun 21 19:04:24 UTC 2007


Is there any way to convert an existing mercurial repo to be a subdirectory
of newer repo? For example, given the directory

   /something/foo/bar/baz

I original created a repo in baz. Later, I realized I wanted to VC
all of /something/foo. I can (and did) create the new repo, which
(understandably) skipped over the baz subdir.

What I'd like to do now is bring the baz subdirectory, with its history,
into the higher-level repo. The bundle/unbundle combo doesn't seem to
provide anyway to "re-root" the bundle's path; that is, it just creates
the contents of baz in the repo root.

Hmmm, it looks like the transplant extension might work, with a filter.
Any comments/confirmation?

Regards,
Steve
-- 
Steve Greenland
    The irony is that Bill Gates claims to be making a stable operating
    system and Linus Torvalds claims to be trying to take over the
    world.       -- seen on the net




More information about the Mercurial mailing list