简体   繁体   English

cvs2git在哪里记录其迁移状态?

[英]Where does cvs2git log its migration status?

i am just trying to migrate a big CVS repository to Git with cvs2git (part of the cvs2svn 2.4.0 tooling). 我只是想使用cvs2git (cvs2svn 2.4.0工具的一部分)将大型CVS存储库迁移到Git。 Therefore i migrate each project separately. 因此,我分别迁移了每个项目。 The time consumption of each migration is still very high. 每次迁移的时间消耗仍然很高。 The migration itself proceeds on a remote server to which i am connected via ssh. 迁移本身在通过ssh连接到的远程服务器上进行。 So the problem is if i disconnect from remote server without waiting for the end of the migration process, i have no idea whether the migration was successful or not. 所以问题是,如果我不等待迁移过程的结束而断开与远程服务器的连接,则不知道迁移是否成功。

Does cvs2git/cvs2svn log its migration status and error messages in a specific file? cvs2git / cvs2svn是否在特定文件中记录其迁移状态错误消息 - I've already searched for it in the cvs2svn folder and also in /var/log... -我已经在cvs2svn文件夹以及/ var / log中搜索了它。

You could probably find out the migration status somehow from the temporary files that cvs2git leaves behind. 您可能会以某种方式从cvs2git留下的临时文件中找出迁移状态。 But you are trying to solve your problem at the wrong level. 但是您正在尝试以错误的级别解决问题。

Instead of running cvs2git in a straight ssh session, you should, for example: 而不是在直接的ssh会话中运行cvs2git,您应该,例如:

  1. Redirect its stdout and stderr to files, which you can view whenever you want: 将其stdout和stderr重定向到文件,您可以随时查看它们:

     nohup cvs2git --OPTIONS ARGS >cvs2git.out 2>cvs2git.err & 
  2. Run cvs2git within a screen session. 屏幕会话中运行cvs2git。 screen (1) is a very handy program that allows you to detach from a terminal session while it is still running and reattached to later, even from a different computer. screen (1)是一个非常方便的程序,可让您从仍处于运行状态的终端会话中分离出来,并将其重新连接到以后,甚至从另一台计算机上也可以。 (It can also do many more things, like allow you to run multiple terminal settings through a single SSH connection.) (它还可以做更多的事情,例如允许您通过单个SSH连接运行多个终端设置。)

If you have already run your process on linux use "strace -p process-id" to trace what is going on . 如果您已经在Linux上运行了进程,请使用“ strace -p process-id”跟踪正在发生的事情。 Redirecting output instead is a good idea 重定向输出是一个好主意

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM