Git 从Mercurial存储库创建快速导出包
我试图找到快速导出hg存储库的方法,并将结果转储到与快速导出兼容的格式文件中 基本上,我想做与Git或Plastic SCM相同的事情:Git 从Mercurial存储库创建快速导出包,git,version-control,mercurial,plasticscm,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 我
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工具()直接将快速导出/快速导入到Git中,但我想知道我是否可以创建转储文件。你看过吗?
fast export.sh
脚本通过管道将hg fast export.py
python脚本的输出传输到git fast import
中来工作。如果您想保存转储文件,只需运行相同的命令并将输出定向到文件。是的,该工具实际上可以工作,但它使用的是一种称为“inline”的旧文件格式,我正在尝试将Hg存储库移动到Plastic SCM,而Plastic SCM似乎无法管理“inline”格式。