SVN merger errors: Working copy path '*' does not exist in repo

So recently I was merging a working version, of a web site and when I checked the status I received an error "Working copy path 'file.foo' does not exist in repository".

I don't know what that means so I searched for the error on my fav. search engine and asked for help on this #svn channel and received very little information.  After a while I found this blog entry.  It was good and simple to fix.  But I had a few issues with the script that they providing there. One the server I was working on (not my hosting) did not have ruby installed. Two, I am working with Subversion 1.5.7 and that script was written for 1.2 or 1.3.  But the information was there.

All I had to do is find and change:

revision=”0″

with

revision=”$correctRevsionNumber″

Easy enough to do right? open vim the file with vim and run :%s/revision="0"/revision="16"/g right?  Well what happens when I have a huge amount of sub folders that have the same issue? that turns in to hour of work.

I made a shell script to help you fix this issue in bulk

here is the code and you can download it below.  I should be run from the root of your working directory.

#!/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\""

find . -path '*/.svn/*' -name entries -exec chmod 644 {} \; -exec sed -i "s/revision=\"0\"/revision=\"$revNum\"/" {} \; -exec chmod 444 {} \; -print

exit;

Please remember to be careful when running a script like this and know that any damage you do you your files from running it is not my fault.  Backing up is a good thing.

Comments

Hi if the blog containing a ruby script is not used, how did u manage to find a way to search for revision=0.
Can you tell me so that i can also follow it.
Thanks

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
8 + 9 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Recent Tweets

@webmeadow I am a big fan of telling people that their site "just needs some Jigery pokary" — 10 hours 58 min ago
@springloops then please give us a blog about it so I can tell my people. Also will people following a ticket now get email updates? — 11 hours 15 min ago
I learn at least 3 things everyday I work. today the #php function range() stands out — 1 day 5 hours ago
#regex always feels more like real "code" then the languages themselves — 6 days 6 hours ago
manually splicing out a #drupal #features module as I over packed one and not I need to simplify them — 6 days 9 hours ago
@weyakin just saw that you are over @skytemplemedia now. I hope thy know what an awesome designer the have now! — 6 days 11 hours ago
@weyakin I could make you one — 1 week 1 hour ago
@tempus I have not gone back. The Android app even comes with a option to tunnel your searches through the TOR network — 1 week 2 hours ago
@cloudhead I just registered the freenode Chanel #lesscss perhaps it should be added to the site for support options — 1 week 1 day ago
just installed #memcahed on a small cloud instance running a #views heavy #drupal site. went from 20 seconds page loads to 2 mins. — 1 week 1 day ago

©2009 Sanguis Development. 462 North King Street, Northampton MA 01060
Phone: (413) 570-0659

AIM: joshbeaureg || Skype: sanguisdex
Syndicate content