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

Re: how to compare an exported file (or set of files) against the repository?

From: Alan Barrett <apb_at_cequrux.com>
Date: Fri, 7 Oct 2011 12:58:02 +0200

On Wed, 05 Oct 2011, Konstantin Kolinko wrote:
>Can "diff -u" command take input from stdout?

 From stdin? Yes, in all diff implementations I have seen on
unix-like systems.

In answer to the original question, I suggest this approach:

     parse the output from "svn log -q -r 1:HEAD $URL" to
     get a list of revision numbers in which the URL was modified.

     For each such revision number, save the output from

        svn cat -r $REVISION $URL | diff -U3 - $FILE

     Find the smallest of those saved diff outputs, and it probably
     corresponds to the version that was originally checked out.

--apb (Alan Barrett)
Received on 2011-10-07 12:58:40 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.