1 year ago
#386637
Gerardo Festa
Establish which version/tag a commit contributes to
In a commit based research for Software Engineering, the first task I've been asked to do is to link every commit to a version. So, per say, every commit that happened between version 1.1 to 1.2 would be seen as 1.1.
Now, to do so, I got all tags from the repo (they are multiple, but let's focus on Apache-Cli) with the date they've been created, and proceded to assign each commit just by confronting the dates.
Using Pydriller tho, the numbers don't match. So, for example, for the tag refs/tags/cli-1.2-RC6
, my method retrieves just 3 tags, being:
aa2434d301c49d100f50af544333886a6767ce9d
e07fd870ca76f478ffd17755e57cfc7bb5ff747e
f0fba7bff7de067e12a78169d1371f3773f3f5a7
as the date for the tag is Mar 11 02:28:29 2009 +0000
.
Whenever I use Pydriller, passing to it the first and last commit of the version (being aa... and f0...), it will analyze 124 commits and only f0... between the above 3 will be in the list.
For what I've undestood, Pydriller follows a "tree structure" or something like that and altough I know i could use it with a list of commit (so I'd be fine with that) I guess my starting tag retrieving/assigning methodology is wrong.
Can you give me any advice on how to perform this task?
git
github
repository
git-commit
gitversion
0 Answers
Your Answer