Hi Team, Could you please help us on below: ·
Finding the commit log of complete AGL repository. But we don’t want to build the kernel, how we can get the complete AGL repository for the same. ·
What we did? We build the kernel and without building the kernel extracted the commit records but the records are not matching. Could you please help us to get the AGL commit record without building the kernel? It will be helpful if it is in Python. System details: Windows 10 RAM= 4GB We want to execute the above in our windows system.
Best regards, Jasbir From: Singh, Jasbir
Hi Miner, Thanks for the suggestion I will give it a try. I am using pydriller and connecting to one of the repo. Do you have any repo details where I can test my scenario (any old repo only to test the scenario if allow).
Could you help in my case I used below set of line to extract from git, can I used same for AGL repo also. from pydriller import RepositoryMining import sys import csv count=0 #Commit hash, Author name filename="Demos2.csv" fields=['hash','name'] row=[] with open(filename, 'w',newline='') as csvfile: csvwriter=csv.DictWriter(csvfile,fieldnames=fields) csvwriter.writeheader() #writing the fields #csvwriter.writerow(fields) for commit in RepositoryMining(‘Repo link’).traverse_commits():
#print('Hash {}, author {}'.format(commit.hash, commit.author.name)) temp1=commit.hash temp2=commit.author.name rows=[{'hash': temp1},{'name': temp2}] count=count+1 with open(filename, 'a',encoding="utf-8",newline='') as csvfile: #csvwriter=csv.writer(csvfile) csvwriter=csv.DictWriter(csvfile,fieldnames=fields) #writing the data rows csvwriter.writerows(rows) # rows=next(csvwriter) # print(count) Best regards, Jasbir From:
agl-dev-community@xxxxxxxxxxxxxxxxxxxxxxxxx [mailto:agl-dev-community@xxxxxxxxxxxxxxxxxxxxxxxxx]
On Behalf Of Walt Miner Hello Jasbir, You can extract historical data from git using the git log command, See for a complete set of options. I use it as part of script when I calculate the number of commits by developers. As an example I use this command to extract the changes between two tags in the repo. This command also formats the output into rows you can import into Excel
as semicolon separated records. git log $tag1..$tag2 --pretty=format:"%h ; $i ; %an ; %s" --no-merges or if you want to see the changes between given dates you can use git log --pretty=format:"%h ; $i ; %an ; %s" --no-merges --since=01–Jan-2019 --before=01–Jan-2020 or since a given date git log --pretty=format:"%h ; $i ; %an ; %s" --no-merges --since=01-Jan-2019 I hope this helps. Regards, Walt Walt Miner AGL Community Manager The Linux Foundation Visit us at: On Sun, Jan 5, 2020 at 7:42 PM Jasbir10 via
Lists.Automotivelinux.Org <jasbir.singh=capgemini.com@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
_._,_._,_
Links: You receive all messages sent to this group.
View/Reply Online (#7977) |
Reply To Group
| Reply To Sender
|
Mute This Topic
| New Topic _._,_._,_
|