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

2011-10-07 Thread Alan Barrett
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

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

2011-10-06 Thread REEDICK, ANDREW
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'

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

2011-10-05 Thread Mertens, Bram
Hi, I have been unable to find an answer to this in the FAQ or the mailing list archives. I found one question that appears to be similar to what I'm trying to achieve but it did not contain a reply that solves my problem. I've got a set of files that were exported from a repository some time

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

2011-10-05 Thread Thorsten Schöning
Guten Tag Mertens, Bram, am Mittwoch, 5. Oktober 2011 um 14:49 schrieben Sie: I would like to find out: a) what revision these files are from You can't, even with comparing checksums or stuff like that you would only get any revisions where the files are the same. But you can't tell when the

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

2011-10-05 Thread Daniel Shahaf
I'm a bit surprised that 'svn info URL/to/file' does not print the checksum of the file, even when the filesystem backend has the checksum stored and doesn't need to calculate it on demand. Mertens, Bram wrote on Wed, Oct 05, 2011 at 14:49:35 +0200: Hi, I have been unable to find an answer to

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

2011-10-05 Thread Ulrich Eckhardt
Am 05.10.2011 14:49, schrieb Mertens, Bram: I have been unable to find an answer to this in the FAQ or the mailing list archives. I found one question that appears to be similar to what I'm trying to achieve but it did not contain a reply that solves my problem. I haven't found the need for

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

2011-10-05 Thread Dominik Psenner
This procedure could be easily automated by a stupid script that does something like: for REV in seq 0 NEWESTREV; do svn up -r REV cp updated-file repos-file if [ -z `svn diff` ]; then echo found candidate rev $REV!; fi svn revert . done JMTC, D. -Original

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

2011-10-05 Thread Mertens, Bram
Mazda Motor Logistics Europe NV, Blaasveldstraat 162, B-2830 Willebroek VAT BE 0406.024.281, RPR Mechelen, ING 310-0092504-52, IBAN : BE64 3100 0925 0452, SWIFT : BBRUBEBB -Original Message- From: Ulrich Eckhardt [mailto:ulrich.eckha...@dominolaser.com] Sent: woensdag 5 oktober

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

2011-10-05 Thread Konstantin Kolinko
2011/10/5 Dominik Psenner dpsen...@gmail.com: This procedure could be easily automated by a stupid script that does something like: for REV in seq 0 NEWESTREV; do        svn up -r REV        cp updated-file repos-file        if [ -z `svn diff` ]; then echo found candidate rev $REV!; fi