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

RE: Re: svn add "already under version control"

From: Gale, David <David.Gale_at_Hypertherm.com>
Date: 2006-07-19 20:27:11 CEST

Erik Huelsmann wrote:
>> mkdir directory # the real directory has several files
>> inside it too
>>
>> svn add directory
>>
>> svn ci
>>
>> rm -rf directory # another program removes this directory
>>
>> mkdir directory # it then creates an entirely new directory
>> with similar files to the original directory
>
> But here you violate all rules about modifying working copies. See the
> warning box in:
>
http://svnbook.red-bean.com/nightly/en/svn.tour.cycle.html#svn.tour.cycl
e.edit
>
> You're not using svn commands!
>
> HTH,
>
> Erik.

Problem is, he's not in control of the process that's deleting &
recreating the directory--he said that it's FireFox (specifically, how
it handles the extensions folder). Now, would you suggest that he a)
hack FireFox to use subversion commands, or b) ask if there's an extant
"force" option for svn add to do what he needs? (Note: he chose option
b.)

I don't have a good solution for the original poster; my best thought
would be to have a separate working copy that is periodically rsync'd to
match the FF directory and any changes committed through a script. Not
ideal, but should work...

-David

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 19 20:28:21 2006

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