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

question about "svn diff"+"ignore files" (.orig/.rej/~)

From: Alfred Perlstein <bright_at_mu.org>
Date: Fri, 20 Nov 2009 14:14:58 -0800

Hello,

We have a script that invokes "svn diff" and then annotates
the output for us.

One thing I noticed is that unlike CVS, when invoked on
a "should be ignored file", basically a file that matches
 *.orig, *.rej and *~, then "svn diff" will emit that file
like so:

? foo.orig

CVS however will not emit anything.

Now both SVN and CVS will not emit anything if "diff" is invoked
on the containing directory.

My basic issue is that I'm not sure what to do...

Because of the "? file.orig" output of SVN, my program assumes
that this are files that need adding.

So:
1) any ideas?
2) Is there some way to query SVN about the files that should be ignored
so that I can filter them in my program?
3) Is there a way to get "svn diff" to ignore the file (generate ZERO output)
when this is a file that should be ignored like "cvs diff"?

thank you,

-- 
- Alfred Perlstein
.- AMA, VMOA #5191, 03 vmax, 92 gs500, 85 ch250
.- FreeBSD committer
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2422555
Please start new threads on the <users_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-subscribe_at_subversion.apache.org>.
Received on 2009-11-20 23:15:50 CET

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.