Page 1 of 1

Compare by content without resync

Posted: 2021-06-11, 14:15 UTC
by farscape
Hi,

I would like to be able to compare text file contents without applying any block matching/synchronization.
I often need to compare dumps of values in text format, line by line, where some values at the same position may be different between the 2 files.
Currently TC tries to match blocks, which messes up the alignment later, whereas I just need to compare the same line numbers in each file.
If there are few mismatches I can do resync manually, line by line, but it's not practical when there are a lot of them, or I need to redo the comparison.

Is it possible to add a checkbox for this in the Comapre Contents window?

Thanks!

Re: Compare by content without resync

Posted: 2021-06-12, 17:13 UTC
by umbra
+1

It would be nice if TC remembered the manual matches made by "Resync comparison from here". At least while the "Compare contents" window is open.

Re: Compare by content without resync

Posted: 2022-08-10, 17:50 UTC
by farscape
Hi! I'm coming back to this request, as I notice that you have added several sync methods for file compare content since then, but none of those is working for me.
I would like to have a mode where each line in a text file is compared with the same line number in the other file, without any resynchronization in case of a difference.
As a SW developer, this would be very useful in comparing various traces/dumps with identical structure, for instance audio signals dumped in text, one sample value per line. Disabling resynchronization would allow to identify exactly which samples are different and how many differences there are.
As it stands now, when encountering more than 1 consecutive different lines, the resync is always trying to match blocks in the files and most of the time it desynchronizes the line numbers and ends up seeing more differences than there actually are. It's great for source code comparison, but not for traces/dumps.


Thanks!