我正在尝试找到快速导出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我知道我可以使用hg-fast-export.py工具(http://hedonismbot.wordpress.com/2008/10/16/hg-fast-export-convert-mercurial-repositories-to-git-repositories/)直接快速导出/快速导入到Git中,但我想知道是否可以创建转储文件。
发布于 2012-05-15 03:43:56
你看过this project吗?fast-export.sh脚本的工作方式是将hg-fast-export.py python脚本的输出通过管道传输到git fast-import中。如果要保存转储文件,只需运行相同的命令并将输出定向到一个文件即可。
https://stackoverflow.com/questions/10538411
复制相似问题