On Fri, Jul 24, 2020 at 5:08 AM
qq778...@gmail.com
<
qq778...@gmail.com> wrote:
>
> Are there any good suggestions for parsing these logs?
>
> Should I read the Gerrit source code to see the analysis of this part?
>
> Does Gerrit REST API also use this method?
Gerrit parses these data, yes.
We don't have published code (except for Gerrit itself) that will help
you parse this data, but in practice, I expect that the format will
not change, because migrating data is a lot of work.
That said, the easiest way to make sense of existing dump of the data,
is to simply run Gerrit on the data, and look at it using the REST
API.
>>> $ git log --patch refs/changes/01/101/meta
>>>
>>>
>>>>
>>>> git log like this:
>>>> [root@gerrit-kanbao xx.git]# git log refs/changes/01/101/meta
>>>> commit 64d7f421facc7ad162587049a3c2b5b67f8820f8
>>>> Author: Gerrit User 1000000 <1000000@bc73f120-cc98-42fa-aac4-7788e2a8a6d9>
>>>> Date: Wed Jul 22 22:06:33 2020 -0400
>>>>
>>>> Update patch set 2
>>>>
>>>> Patch Set 2: -Verified
>>>>
>>>> (1 comment)
>>>>
>>>> Patch-set: 2
>>>> Reviewer: Gerrit User 1000000 <1000000@bc73f120-cc98-42fa-aac4-7788e2a8a6d9>
>>>> Label: Verified=0
>>>>
>>>> commit 7b0ecbef7d3cc313616b448de91f5c0e4d689dab
>>>> Author: Gerrit User 1000000 <1000000@bc73f120-cc98-42fa-aac4-7788e2a8a6d9>
>>>> Date: Wed Jul 15 01:55:34 2020 -0400
>>>>
>>>> Update patch set 2
>>>>
>>>> Patch Set 2: Verified+1
>>>>
>>>> Build Successful
>>>>
>>>>
http://172.29.53.101:8888/job/patch_set_created/3/ : SUCCESS
>>>>
>>>> Patch-set: 2
>>>> Tag: autogenerated:jenkins-gerrit-trigger
>>>> Reviewer: Gerrit User 1000000 <1000000@bc73f120-cc98-42fa-aac4-7788e2a8a6d9>
>>>> Label: Verified=+1
--
Han-Wen Nienhuys - Google Munich
I work 80%. Don't expect answers from me on Fridays.
--
Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Paul Manicle, Halimah DeLaine Prado