Why is git-cvsimport missing one major patchset?

前端 未结 4 1123
自闭症患者
自闭症患者 2021-02-04 19:44

This is a followup to a previous question of mine.

I can look through the output of cvsps (saved in my ~/.cvsps directory) and see a patchset for a major, complicated co

4条回答
  •  一个人的身影
    2021-02-04 20:23

    Thanks a lot! I had the same problem and could fix it with your help!

    I even found a way to avoid re-running cvsimport from scratch. Simply setting the 'master' and the 'origin' branch to older git commits made cvsimport re-import the patches since that including the missing ones:

    find a commit ID older than the missing commits:

    git log

    make 'origin' point to that commit

    git branch -f origin

    switch to origin (so that 'master' is not the current HEAD)

    git checkout origin

    now make 'master' point the older commit as well

    git branch -f master origin

    switch back to master

    git checkout master

    now, time is completely rolled back and you can do the cvsimport again, this time properly

    git cvsimport ...

提交回复
热议问题