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

'svn diff' and binary files

From: Daniel Becroft <djcbecroft_at_gmail.com>
Date: Thu, 23 Jul 2009 16:10:26 +1000

Hey all,

I've just noticed some 'interesting' behaviour w.r.t. the way that 'svn
diff' works for binary files.

If I try and get a patch for a binary file for a specific revision:

svn diff -c X svn://....../binaryfile.dll
>

I correctly get the following output:

Index: moitaka.dll
> ===================================================================
> Cannot display: file marked as a binary type.
> svn:mime-type = application/octet-stream
>

However, I've noticed that (using ProcessMonitor from sysinternals.com),
even though it couldn't display a valid patch, both copies of the file seem
to be downloaded into %TEMP%.

Is this valid behaviour? Does 'svn diff' require both copies of the file
*before* it can determine that a diff is not possible?

Cheers,

---
Daniel Becroft
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2374667
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-23 08:11:36 CEST

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.