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

Re: Merge bugs

From: Gustavo Niemeyer <niemeyer_at_conectiva.com>
Date: 2003-02-17 19:41:26 CET

> I tried running merge with --force, but it didn't make a difference.
> Gustavo, did you find a reasonable work around?

Yes, but it's a quick-n-dirty hack. :-)

Here is a script, which runs non-recursively (-N). Notice that
it still breaks if there are missing *files* in any given directory.

parentdir=`pwd`
repos=https://oops.kerneljanitors.org/repos/apt-rpm/vendor/trunk
revs=20:21

for dir in `find -type d`; do
        cd $dir
        subdir=`echo "$dir" | sed 's/\.\///'`
        if [ -d .svn ]; then
                echo "Merging $subdir... "
                svn merge -N -r $revs $repos/$subdir
                if [ $? -eq 0 ]; then
                        echo "Done merging $subdir!"
                else
                        echo "Failed merging $subdir!"
                fi
        fi
        cd $parentdir
done

-- 
Gustavo Niemeyer
[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 17 19:42:39 2003

This is an archived mail posted to the Subversion Dev mailing list.

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