0

私は、 PERFORCEデポによって生成されたアクティビティログを使用して、職場でのキックのコードウォームを設定しようとしています。しかし、私はgoogle-codeサイトのガイド/ウィキに従っていくつかの問題に遭遇していて、誰かが共有できるPERFORCEサーバー用にそれをセットアップした経験があるのではないかと思っていましたか?

私はUTF-8エンコーディングの問題に直面しているだけでなく、非常に長い時間がかかっていると思います。Pythonスクリプトによって生成されたアクティビティログは65kです。他の大規模なプロジェクトのビデオを見たことがあるので、これが原因かどうかはわかりません。

助けていただければ幸いです。ありがとう

4

1 に答える 1

0

I just ran into similar issues with runtime. My interest is in visualizing only the most recent development cycle for my company's large project, which consisted of approximately 10000 Perforce changelists.

Looking at convert_logs.py, I saw it was making a direct call to p4 -G changelists which would dump the entire revision history at considerable cost. p4 changes takes an argument -m to limit the number of changelists returned. So I simply edited line 347 of convert_logs.py from

changelists = run_marshal('p4 -G changelists "' + opts.perforce_path + '"')

to

changelists = run_marshal('p4 -G changes -m 10000 "' + opts.perforce_path + '"')

This helped immensely with reducing the runtime.

If anyone is feeling ambitious, I'd suggest refactoring convert_logs to include something like a --perforce-args option where this and any other options could be specified.

于 2015-03-11T23:12:00.473 に答える