如何调试 git-cvsimport? (看不到复杂的提交)
大约 40 分钟前,我使用 git-cvsexportcommit 进行了一项特别复杂的更改,涉及多个文件重命名、合并和从 git 删除到 cvs。 一切都很顺利,CVS 的检查可以看到这些变化。 但是,当我运行 git-cvsimport 来更新 CVS 存储库的 git 镜像时,更改并未出现。
我知道 git-cvsimport 会延迟导入非常新的更改,以避免从尚未完成的多文件 CVS 提交中进行 git 提交,但我很确定延迟只有十分钟。
任何想法有什么问题吗? 我该如何调试这个? 我是否需要手动运行 cvsps?如果需要,我需要什么?
About 40 minutes ago I committed a particularly complicated change involving several file renames, mergers, and deletes from git into cvs, using git-cvsexportcommit. This went fine, and a checkout from CVS sees the changes. However, the changes are not appearing when I run git-cvsimport to update my git mirror of the CVS repository.
I know that git-cvsimport delays importing very new changes to try to avoid making a git commit out of a multi-file CVS commit that isn't completed yet, but I'm pretty sure that delay is only ten minutes.
Any ideas what's wrong? How do I even debug this? Do I need to run cvsps by hand and, if so, what would I be looking for?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该尝试删除相关的 cvsps 缓存文件(应该位于 ~/.cvsps/ 中)。 我过去也遇到过类似的问题,这就是解决问题的方法。
您还可以尝试将 -x 选项传递给 cvsps,告诉它忽略缓存文件。 您可以使用 git-cvsimport 的“-p”选项来执行此操作。
如果一切都失败了,我猜一个新的 git-cvsimport -C 会接受更改。
祝你好运!
You should try deleting the relevant cvsps cache file (should be in in ~/.cvsps/). I've had similar issues in the past and I that is what cleared it up.
You could also try passing the -x option to cvsps which tells it to ignore the cache file. You can use git-cvsimport's "-p" option to do this.
If all else fails, I would guess a fresh git-cvsimport -C would pick up the change.
Good luck!