gnu-arch-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] Type-specific diff & patch


From: Mark Flacy
Subject: Re: [Gnu-arch-users] Type-specific diff & patch
Date: Wed, 03 May 2006 01:06:39 -0500

On 2006.05.02 12:51, Thomas Lord wrote:

I'd nearly always want to use, say, an XML-specific diff/patch for some kinds of file -- so per-file is a good idea.

It's been my colleagues' experiences that the ClearCase's XML diff is more often confusing than enlightening. That may be more of a comment on the specific tool than the idea itself.

It isn't far-fetched, however, for an XML tool which is aware of the schema to conclude that even though *you* think you changed merely the beginning and end tags of an XML block, you *actually* removed the entire block with the old name and inserted a replacement block with the new name. That can be pretty confusing for the human who is told that he changed 300 lines instead of only 2. Especially the human who used a simple text editor to make the change.


If you are going to analyze files for semantic content, then you may wish to look at ANTLR (http://www.antlr.org/) and consider using diffs of abstract symbol trees for version control. You won't get back out exactly what you put in but you should be able to get back out something that *means* exactly the same thing that you put in.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]