I'm trying to find the way to fast-export a hg repository and dump the result into a fast-export compatible format file.
Basically I want to do the same that I can do with Git or Plastic SCM:
git fast-export --all -C --tag-of-filtered-object=drop --signed-tags=strip > Repository.fast-exported
cm fast-export MyProject@PlasticSCMServer:8087 Repository.fast-exported
I know I can do the fast-export/fast-import directly into Git using the hg-fast-export.py tool (http://hedonismbot.wordpress.com/2008/10/16/hg-fast-export-convert-mercurial-repositories-to-git-repositories/) but I'm wondering if I can create the dump file.
Have you looked at this project? The fast-export.sh
script works by piping the output of the hg-fast-export.py
python script into git fast-import
. If you wanted to save the dump file, you could simply run the same command and direct the output to a file.
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