Различия
Здесь показаны различия между двумя версиями данной страницы.
Следующая версия | Предыдущая версия | ||
dev:hg:index [2012/10/19 12:43] jamis7005 создано |
dev:hg:index [2020/02/11 12:47] (текущий) denis |
||
---|---|---|---|
Строка 2: | Строка 2: | ||
[[dev:hg:close_bad_branches]] | [[dev:hg:close_bad_branches]] | ||
+ | |||
+ | ===== migration ht to git ===== | ||
+ | |||
+ | <file bash start.sh> | ||
+ | prj=jroboplc | ||
+ | |||
+ | hg clone https://promauto:password@bitbucket.org/promauto/${prj}-hg | ||
+ | mkdir ${prj} | ||
+ | cd ${prj} | ||
+ | git init | ||
+ | /home/denis/temp/fast-export/hg-fast-export.sh -r /home/denis/temp/${prj}-hg | ||
+ | |||
+ | read -p "Press enter to continue with git" | ||
+ | |||
+ | git remote add origin https://promauto:password@bitbucket.org/promauto/${prj}.git | ||
+ | git push -u origin master | ||
+ | |||
+ | cd .. | ||
+ | |||
+ | </file> | ||
+ | |||
+ | |||
+ | <file bash fix.sh> | ||
+ | prj=roboplant-rplant2-sources | ||
+ | rev=31 | ||
+ | |||
+ | cd ${prj}-hg | ||
+ | |||
+ | hg branch r${rev}-fix-git-conversion | ||
+ | hg commit -m "r${rev}-fix-git-conversion" | ||
+ | hg update default | ||
+ | |||
+ | cd .. | ||
+ | </file> | ||
+ | |||
+ |