从Mercurial存储库创建快速导出包

MrC*_*uer 8 git version-control mercurial plasticscm

我正在尝试找到快速导出hg存储库并将结果转储到快速导出兼容格式文件的方法.

基本上我想用Git或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
Run Code Online (Sandbox Code Playgroud)

我知道我可以使用hg-fast-export.py工具直接快速导入/快速导入Git(http://hedonismbot.wordpress.com/2008/10/16/hg-fast-export-convert -mercurial-repositories-to-git-repositories /)但我想知道我是否可以创建转储文件.

lar*_*sks 2

您看过这个项目吗?该fast-export.sh脚本的工作原理是将 python 脚本的输出通过管道传输hg-fast-export.pygit fast-import. 如果您想保存转储文件,只需运行相同的命令并将输出定向到文件即可。