How can I get
We need to split out part ot the
oldRepo (which was a straightSubversion import) into its own repository, and we'd like to preserve the history.
Is there some way we can get all the changesets related to particular files/directories and push only them into a new repo?
hg convert is the best way to do this. The
documentation is pretty good. You'll want to set up a filemap, which specifies the files and directories you want to the new repo.
Note that if you want to move a directory up a level, you'll want the
Also, the Kiln Importer can be used to handle this simple case if the Mercurial repo is on the local machine, by just typing the full path to the directory that you want to extract into it's own repository.