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

Re: Diff-Scripts

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Thu, 5 Jun 2008 12:03:31 +0100

2008/6/5 Simon Berry <Simon.Berry_at_andromeda.uk.com>:
> I have googled for any documentation on how the Diff-Scripts work, but
> haven't been able to find any documentation.
>
> If I implement a custom diff script for a particular file type, does this
> mean that tsvn will use this script to check the file for modifications?
> Looking at the scripts in the Diff-Scripts directory, I suspect the answer
> to this question is no.
>

Correct. The diff script is used for viewing differences. eg. for
MS-Word files you can only diff by using Word itself.

>
> We are using svn on database files (i.e. binary). If the database is opened
> by a user but no changes are made, tsvn still (correctly) marks the file as
> modified because the 'last accessed' field in one of the database tables is
> changed.
>
>
>
> Is there a way to override the algorithm that tsvn/svn uses to detect
> modifications ? I'd like to implement a custom algorithm that compares only
> the 'meaningful' data in the database.
>

That behaviour is embedded within subversion itself and it is looking
at file size, timestamp and binary content. It has to be highly
optimised so that a large working copy can be checked within a
reasonable time frame, so custom programs to check each file are not
supported.

Simon

-- 
: ___
: oo // \\ "De Chelonian Mobile"
: (_,\/ \_/ \ TortoiseSVN
: \ \_/_\_/> The coolest Interface to (Sub)Version Control
: /_/ \_\ http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-06-05 13:03:41 CEST

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

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