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 is a free, distributed version control system. It's also referred to as a revision control system or Mercurial source control. It is used by software development teams to manage and track changes across projects.
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:
exclude path/you/do/not/want rename path/you/do/want .
The rename is only necessary if you want to take the parts you're keeping and move them "higher" in the directory hierarchy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With