Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Finding Diff files in clear case

by bikeNomad (Priest)
on Aug 15, 2001 at 20:30 UTC ( #105084=note: print w/replies, xml ) Need Help??

in reply to Finding Diff files in clear case

It's not clear to me what you're doing, but it sounds like you have the classic "diff3" situation, where a single file is changed to become two other files.

You may want to look at my Algorithm::Diff module. This can produce (among other things) an array of differences that can then be compared for their differences.

But note that this information contains line numbers, whose position will change as A and B change from the baseline. That is, the original difference may say insert this line after line 5 of file A. However, if you add an identical line to the beginning of both A and B and do the diff again, you will see an output that says to insert this line after line 6 of file A.

The only way I know to deal with this is to keep a baseline version of the A file, and do diffs with the newest versions of A and B, adjusting line numbers as needed.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://105084]
[holli]: Alone the chatterbox and everybody writes his own cb client tradition
[LanX]: there was a guy who tried to steal the concept and build an own monastery ...
[LanX]: yeah PM is very emacsy ;-)
[LanX]: I think tobyink was on a good track with his redesign, pitty the pmdevs/gods didn't try to continue the approach of a modern responsive design
[holli]: *sigh* why has there to be drama in such a thread?
[LanX]: ?
[holli]: Re^2: Let's Make PerlMonks Great Again! -- suggestions and dreams - STFU and write code already (start already)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2017-11-20 19:40 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (292 votes). Check out past polls.