-
Notifications
You must be signed in to change notification settings - Fork 266
Description
Description:
I had had migrated a Mercurial repository with submodules to git. Then team pushed new changes to the Mercurial so I had to re-import it to git. Unfortunately I did a mistake: I forgot to re-import changes in submodule repository and just re-imported the parent repo. After a verification of git commits I found out that submodule was deleted.
Steps to reproduce
-
create submodule mapping
"submodule"="../submodule" -
Import submodule
-
Import parent repository
-
Add new commit in submodule mercurial repository
-
Add new commit in parent mercurial repository
-
Run hg-fast-import for parent repository only
Result:
Parent repository contains a commit with removal of sub-module.
Stdout contains a warning that commit of sub-module is missing
Expected result:
hg-fast-import.sh should throw error. Migration should be halted.