[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: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Wed, 5 Oct 2011 19:19:26 +0400

2011/10/5 Dominik Psenner <dpsenner_at_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
>        svn revert .
> done
>

Can "diff -u" command take input from stdout?

Its man page says "If a FILE is `-', read standard input."
If so, one could feed it from "svn cat" command.

Just for record, there is "--force" flag for svn checkout command,
that allows it to create a working copy over files that were exported.
I think it should not overwrite files that has local changes, but have
not verified whether that is true.

> Check out a working copy and copy the files over.

+1

Best regards,
Konstantin Kolinko
Received on 2011-10-05 17:20:00 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.