[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

diff without property changes?

From: Alexey Neyman <alex.neyman_at_auriga.ru>
Date: 2006-05-30 16:21:34 CEST

Hi, there.

Is there a way to tell the diff to output only the changes to file
contents, skipping property changes?

The problem is, I imported several large repository snapshots on a
vendor branch. Those source were exported from CVS, and therefore
don't contain any properties. On the trunk, I added svn:executable
and svn:ignore wherever necessary. And now, when I try to generate a
patch against a certain snapshot on the vendor branch, I get a patch
90% of which is just a bunch of "Property changes" messages. I know
that these messages will be ignored by the patch(1) utility. However,
it is rather hard to review such a patch...

I can develop a filter I'd run such patches through, in order to
delete those "property changes" chunks: Once the "^Property changes"
regexp matches, skip the line before it and continue skipping lines
until the "^Index: " regexp matches. This will work for
svn:ignore/svn:executable properties, ok. But, provided that
user-defined properties can contain any user-provided text, this is
unreliable.

That said, I think a "--no-property-changes" option to svn diff would
be nice to have :)

Regards,
Alexey.

-- 
But the worst was yet to come.
                        -- Spathi, SC2
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 30 16:41:24 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.