hi there there is an svn merge error that screws up a the .svn entries file to make a variable that is marked revision="0"
I have started a script to fix this but have been running into issues with the find line program in it not returning any results.
any ideas
Code:
#!/bin/bash
echo -e "Waring please make sure you know what you are doing you can severely ruin your svn file structure if you don't know what your doing.\n Press crtl-c to exit this script and back up your files."
echo "What revision are you trying to fix?"
read revNum;
echo -e "Replacing all instances of:\n revision=\"0\" \n with \n revision=\"$revNum\""
function correct-rev {
echo $1
chmod 644 $1
sed -i "s/^revision=\"0\"/revision=\"$2\"/" $1
chmod 444 $1
}
find . -path '*/.svn' -name entries -exec correct-rev {} $revNum \;