VS2017 -- Moved blocks not detected

Discussion of open issues, suggestions and bugs regarding file and folder merge tool – Code Compare
Post Reply
knupug
Posts: 2
Joined: Tue 19 Jul 2022 20:12

VS2017 -- Moved blocks not detected

Post by knupug » Wed 20 Jul 2022 01:45

I'm running the latest codecompare in Visual Studio 2017. I have a series of procedures in some c# code that codecompare isn't handling well. I've experimented with the options but haven't found something that works for me. I think what I need is something that says don't match unless x lines are found in common, where I can set x. Here's the situation: (old code on the left, new code on the right)

...
function A
procedure B...procedure B
procedure C...procedure C
procedure D
procedure E
procedure F...procedure F
<nothing> ...procedure G
procedure H...procedure H
procedure I...procedure I
...

The issue is that procedure F in the new code is being compared to procedures D and E in the old code, and procedure G in the new code is being compared to procedure F in the old code. The problem I think is that procedure G in the old code and procedure F in the new code are virtually identical except for the procedure names and one token in the body of the code. (Also, the two procedures F are identical except for one token in the body of the code.)

Thanks in advance for any help,

MikeP

Post Reply