Commit graph

51 commits

Author SHA1 Message Date
Bradley M. Kuhn
675cd0a98b Working version of forking central commit.
Note that due to the fact that Git::Repository calls System::Command,
you have to be careful about when you install the child signal handler.

You only want it in the parent, after the parent has done its operations
with Git commands, and note that the child must also disable the handler.
2016-04-28 21:25:14 -07:00
Bradley M. Kuhn
1cb64afb40 Turn off child handler for now. 2016-04-28 20:54:31 -07:00
Bradley M. Kuhn
bb4c940b26 Proper support for attributing log message.
This change allows for proper use of a regex to find attributions made
in a log message.
2016-04-28 20:52:29 -07:00
Bradley M. Kuhn
2ae7968eee Rename to finishedOperations
change log to operations.
2016-04-28 20:50:48 -07:00
Bradley M. Kuhn
90466f78e4 Move fork processing code to earlier in file. 2016-04-28 20:35:20 -07:00
Bradley M. Kuhn
26edcca3a3 Separate this from arg parsing. 2016-04-28 20:35:10 -07:00
Bradley M. Kuhn
e22914f882 Basic central commit mode is working.
Note that I have to eval {} the git blame operation as it will return
errors if the file has disappeared by time of the central commit.
2016-04-28 20:32:53 -07:00
Bradley M. Kuhn
50d747db0f closing STDIN did something weird, don't do it. 2016-04-28 20:32:42 -07:00
Bradley M. Kuhn
0f7eae3318 Write rest of function to produce blame data. 2016-04-28 20:02:17 -07:00
Bradley M. Kuhn
edbbf4263c Add blame options. 2016-04-28 20:02:10 -07:00
Bradley M. Kuhn
91127ef7b4 use strict and warnings. 2016-04-28 19:59:24 -07:00
Bradley M. Kuhn
f550c60f26 declare this variable properly. 2016-04-28 19:59:14 -07:00
Bradley M. Kuhn
c215f6c218 Loop to fill files. 2016-04-28 19:47:54 -07:00
Bradley M. Kuhn
1174f0c910 Documentation on central commit mode. 2016-04-28 19:34:16 -07:00
Bradley M. Kuhn
0358ac23a0 Various improvements to get script working.
* Process command line arguments more appropriately.
 * Begin function to handle central commit solution.
 * ProcessCommit a bit documented and additional argument.
2016-04-28 19:33:18 -07:00
Bradley M. Kuhn
722551397d Various fixes to properly handle children.
The children/parent details were somewhat reversed.  This corrects it.
2016-04-28 18:52:07 -07:00
Bradley M. Kuhn
fe75b701e9 print to correct file handle. 2016-04-28 18:51:41 -07:00
Bradley M. Kuhn
e79b5e5a03 Correct hash key name. 2016-04-28 18:51:22 -07:00
Bradley M. Kuhn
696dae1e68 Initial infrastructure code for forking
Wrote the basics of the fork procedure for the process of doing the git
blame commands.

This is untested.
2016-04-28 18:33:48 -07:00
Bradley M. Kuhn
96a7c05dc6 Emacs lisp compile-command variable. 2016-04-28 16:01:13 -07:00
Bradley M. Kuhn
26104f38d9 Manifesto of the motivations & processes of script
Explain in detail the basic algorithm to be employed by this script, and
also point out its inherent flaws.
2016-04-28 15:57:01 -07:00
Bradley M. Kuhn
9ed0147eed Move print inside the if statement. 2016-04-28 15:22:55 -07:00
Bradley M. Kuhn
80da332beb Produce needed output by script.
Include some verbosity too.
2016-04-28 15:06:55 -07:00
Bradley M. Kuhn
214908d552 Add Lisp local variables for Emacs compilation. 2016-04-28 13:22:56 -07:00
Bradley M. Kuhn
248dd5bcd9 Began work on script to build list of commit ids 2016-04-28 12:51:58 -07:00
Bradley M. Kuhn
4c7c0775bd Rework script for new purpose. 2016-04-28 12:35:22 -07:00
Bradley M. Kuhn
c09715e5db I just made a copyrightable change to this file, update copyright notice. 2014-02-20 09:26:40 -05:00
Bradley M. Kuhn
e2b2aa4639 Print out in stdout what directories are being compared. 2014-02-20 09:26:29 -05:00
Bradley M. Kuhn
65cab7dfc0 Include a calculation and printing of total Lines 2014-02-15 14:25:08 -05:00
Bradley M. Kuhn
c555532725 Move 'die' to right place in outer loop; improve regex for diffstat summary line. 2013-08-15 20:52:54 -04:00
Bradley M. Kuhn
ba087e3285 First draft of new diffstat-total-compare.plx script. 2013-08-15 20:48:16 -04:00
Bradley M. Kuhn
f407f1e8b2 This script is based on blame-count-lines-by-name-and-commit-list.plx.
It will handle finding lines of text in a blame file for commits that
match a given user, and give out a list of commit ids that are not on a
commit list.
2012-08-13 17:50:01 -04:00
Bradley M. Kuhn
ff49fe5311 Similar to blame-find-by-name.plx, but has three lists worth of criteria. 2012-08-13 17:49:14 -04:00
Bradley M. Kuhn
c4151115ef Script similar to blame-counter.plx that will count based on two criteria. 2012-08-13 17:47:52 -04:00
Bradley M. Kuhn
0ed5f8090e Merge commit 'refs/merge-requests/1' of git://gitorious.org/gpl-enforcement-tools/gpl-enforcement-scripts into merge-requests/1 2012-06-19 15:08:49 -04:00
Bradley M. Kuhn
c3be8155aa There's no reason for diff call here to not always ignore whitespace. 2012-05-24 09:43:42 -04:00
Bradley M. Kuhn
232072ed9e Switch some of the temporary file operations to use File::Temp() 2012-04-15 11:01:01 -04:00
Bradley M. Kuhn
df4e0f2f0e die if write to output file fails for any reason. 2011-12-06 09:27:31 -05:00
Brett Smith
d0bc6f16da first version of license header reporter 2011-09-17 12:01:17 -04:00
Bradley M. Kuhn
c13600b7fb Change sorting order. 2011-08-30 13:24:39 -04:00
Bradley M. Kuhn
f4147dc085 Changed format of output to be more uniform. Include percentage. 2011-08-30 13:24:30 -04:00
Bradley M. Kuhn
c44ec348eb Began script to print all commit IDs and number of lines found in blame output. 2011-08-29 16:08:30 -04:00
Bradley M. Kuhn
73f1df4e47 First draft of line blame counter script. 2011-08-23 10:23:23 -04:00
Denver Gingerich
1208e8b7da h-c: sort the list of files used for file compare
Sorting the list of files used for file comparisons (MD5 sums and
actually diffs) makes the output much easier to deal with, especially
for C&CS checkers.  It groups all the files in a given directory
together so that one can more easily deal with all these files at
once.  This is useful for comparing differences in particular
components, especially ones like BusyBox whose files exist mostly in a
single directory and have the same checksums (since they all point to
one binary).
2011-05-20 11:24:13 -04:00
Denver Gingerich
31e2c78e8c h-c: infinite context for file MD5 sum comparison
Since C&CS checkers are often interested in the list of files that
have stayed the same between a firmware release and the result of
compiling the C&CS for that firmware (ie. to see if there are binaries
which have not changed, which is unlikely because each compiler
configuration outputs slightly different binaries), add "infinite"
lines of context in the diff command for the MD5 checksum comparison.
This will include all files that have not changed (in addition to the
files that have changed).

I didn't immediately see a flag for infinite lines of context in the
diff manpage so I'm using a big number for now (2,000,000,000).
2011-05-20 11:16:11 -04:00
Denver Gingerich
349f4eee34 h-c: "comparision" -> "comparison" 2011-05-20 11:06:10 -04:00
Denver Gingerich
98f589eb63 h-c: "unablet open" -> "unable to open" 2011-05-20 11:04:41 -04:00
Denver Gingerich
b04949af1a h-c: add headings for each type of comparison
Without headings, it's non-obvious which sections correspond to which
comparisons in the output file.  This information was printed to
standard output, but not to the output file.  So I added this
information to the output file as well.

My knowledge of Perl is limited so I just used system("/bin/echo ..");
for now.  It would be good to fix that later.

I've added a copyright notice for myself, since this change is
probably significant enough to be copyrightable.
2011-05-20 10:56:11 -04:00
Bradley M. Kuhn
19e762da5f Put proper copyright notices after email exchange with all the authors in
question to verify they agree to GPLv3-or-later.  I have the email
archives privately if anyone ever needs to verify that all copyright
holders agreed to license this code GPLv3-or-later.
2011-04-27 10:51:27 -04:00
Bradley M. Kuhn
2e0c765a28 Added copy of GPLv3 2011-04-21 12:51:44 -04:00