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

Re: Directories and svn

From: Ryan Schmidt <subversion-2004_at_ryandesign.com>
Date: 2005-02-04 21:41:46 CET

On 04.02.2005, at 18:13, Giles Williams wrote:

> Mac OS X treats the entire package/directory as a TextEdit file.
> Unfortunately, when the file is edited and saved in TextEdit, the .svn
> directory is clobbered and removed - causing the problems described in
> your email. The same thing happens to .nib packages/directories edited
> in Interface Builder. This appears to be a basic problem with using
> Mac OS X with Subversion, since those Mac OS X applications that deal
> with file packages in this way are not written to know that the .svn
> folder should remain.
>
> The only workaround is to copy the .svn folder to a temporary
> location, then make your edits, then copy the .svn folder back into
> the file package before using svn (to commit or whatever).

Ooooh... Thanks for the heads-up! I'm on OS X and about to start using
Subversion so this is very good to know.

I generally use Terminal to launch apps and to start editing files. For
example, I can type "edit ~/.bashrc" to launch TextWrangler and have it
edit my .bashrc file.

My .bashrc has all sorts of goodies in it like

export EDITOR='edit -w --resume'

and

alias safari='open -a Safari.app'

so that I can type "safari index.html" to have it open into Safari.

I suppose one should then define a similar alias for editing TextEdit
or Interface Builder files which would do just what you suggest -- copy
out the .svn directory, edit the file, wait for the editor to close the
file, and then copy the directory back.

Fixing every Mac OS X app that edits packages probably won't happen...
And the only way I could imagine for the Subversion team to work around
the problem is to not use .svn directories, and to store the data
elsewhere, but that would be a pretty major change, and I understand
there are reasons why it was done the way it's done.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 4 21:44:19 2005

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.