I don't understand the /statsonly output

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
j00hii
New Member
Posts: 4
Joined: Fri Jan 27, 2017 3:28 pm

I don't understand the /statsonly output

Post by j00hii »

When I compare two folders on the commandline and add the /statsonly option, I get the following output:
2 differences: 20 files, 5 lines
Added items: 0 files and 1 lines in changed files
Deleted items: 0 files and 1 lines in changed files
Changed items: 20 files and 3 lines in changed files
This is the full command:

Code: Select all

ExamDiff.com folder1 folder2 /g:options_m.txt /f /o:- /statsonly
Then I change ONE SINGLE character in one of the files in folder1, everything else remains unchanged, and I get the following output:
3 differences: 25 files, 6 lines
Added items: 0 files and 1 lines in changed files
Deleted items: 0 files and 1 lines in changed files
Changed items: 25 files and 4 lines in changed files
I don't understand this. I would expect exactly one additional change. What do the numbers mean?

Actually, there are exactly 5 (in the first case) or 6 (in the second case) differences, respectively.
Of those differences, 2 are lines which only exist in one of the folders and 3 (first case) resp. 4 (second case) are differences within lines.

Can someone explain?
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: I don't understand the /statsonly output

Post by psguru »

It's hard to tell without seeing your results. Compare your directories before and after the change in the UI and post your screenshots please.
psguru
PrestoSoft
j00hii
New Member
Posts: 4
Joined: Fri Jan 27, 2017 3:28 pm

Re: I don't understand the /statsonly output

Post by j00hii »

before the change:

Image

after the 1-letter change:

Image
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: I don't understand the /statsonly output

Post by psguru »

OK, so do these UI results look right to you? If so, with the same directories and options, do you get 20 and 25 files with the /statsonly option? If so, there must be a bug there. Please confirm.
psguru
PrestoSoft
j00hii
New Member
Posts: 4
Joined: Fri Jan 27, 2017 3:28 pm

Re: I don't understand the /statsonly output

Post by j00hii »

Thanks for your reply. I have doublechecked and can confirm.

In the UI, the results are perfectly correct as far as I can tell. Likewise, the results in the console are perfectly correct WITHOUT the /statsonly option:

Code: Select all

ExamDiff.com folder1 folder2 /g:options_m.txt /f /o:-
Adding the /statsonly option produces the the described output with 20 or 25 files, respectively, as described above. To get these very different results, I only change one non-whitespace non-comment character in a .cs file, nothing else.

Code: Select all

ExamDiff.com folder1 folder2 /g:options_m.txt /f /o:- /statsonly
Here is the options file I'm using: http://johannes.unterguggenberger.info/ ... ions_m.txt
User avatar
psguru
Site Admin
Posts: 2228
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: I don't understand the /statsonly output

Post by psguru »

Yes, it's a bug that occurs when /f and /statsonly options are used together. The fix will appear in the next build of 9.0 Beta.
psguru
PrestoSoft
j00hii
New Member
Posts: 4
Joined: Fri Jan 27, 2017 3:28 pm

Re: I don't understand the /statsonly output

Post by j00hii »

That's great! Thank you :)
Post Reply