[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: REEDICK, ANDREW <ar345x_at_att.com>
Date: Thu, 6 Oct 2011 21:37:36 +0000

Unless you exported multiple revisions, you shouldn't need more than a few positive matches to determine the revision.

First, compare the tree structure against the repository. You'll want to avoid researching moved files, and this will help you narrow down your search.

Second, 'svn export' seems to preserve timestamps on the exported files. You can check 'svn log' for a matching timestamp for that file.

Then once you have enough fingerprints to id the export revision, you can do a generic tree comparison to find changed and/or moved files.

> -----Original Message-----
> From: Mertens, Bram [mailto:mertensb_at_mazdaeur.com]
>
>
> Is this possible without looping through all the revisions and calculating
> checksums?
> The problem with appraoch besides the time it would take is that it would
> obviously not catch files that are not 100% identical to the files in that
> revision.
>
> Thanks in advance for any pointer that would help in this.
>
Received on 2011-10-06 23:38:27 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.