I have a largish Mercurial repository that I've decided would be better as several smaller repositories. Is there a way that I can split the repository and have each piece retain its revision history?
相关问题
- Mercurial compared to private branches in SVN
- Using Subversion and SourceSafe at the same time?
- How to abandon all Mercurial changes that haven
- subversion merge - “has different repository root
- Windows permissions on a directory: Mercurial - hg
相关文章
- Mercurial Commit Charts / Graphs [closed]
- What is the tortoisehg gui equivalent of doing “hg
- How to use Mercurial from Visual Studio 2010?
- SSIS solution on GIT?
- Is it possible to do a “destroy history” in TFS?
- Is there a version control system abstraction for
- Get Android library module version number from ins
- Sprockets::CircularDependencyError application.js
Just clone it and delete the unwanted stuff out of each copy.
The best way to do this is using the 'convert' extension. You'll use mercurial and both source and destination type and then use a
--filemap
with entries like:The rename is only necessary if you want to take the parts you're keeping and move them "higher" in the directory hierarchy.
I found a detailed guide here:
Create a file map
new-repo.filemap
such asCreate another file map
rewrite-old-repo.filemap
:Create the new repository:
The new repository is now finished. The directory is empty, but a
hg update
will bring its contents up to speed.Create the modified repository: