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

[OS X] Preserving .svn directories in nibs; restoring nuked .svn directories

From: Nicholas Riley <njriley_at_uiuc.edu>
Date: 2003-02-23 06:04:52 CET

People who use Subversion to develop Cocoa apps on OS X will probably
have run into the problem where various tools that use bundle
directories (.nib, .rtfd, etc.) nuke the .svn directories when you
save.

Mark Lilback <mark@lilback.com>, who is not a list member, asked me to
forward this information about an Interface Builder palette he wrote
which preserves .svn directories in nibs:

----- Forwarded message from "Mark J. Lilback" <mark@lilback.com> -----

From: "Mark J. Lilback" <mark@lilback.com>
To: Nicholas Riley <njriley@uiuc.edu>
Subject: Re: Best SCM solutions?

I don't remember if I ever sent you the palette. I've uploaded it to
<http://www.rtlabs.com/downloads/subvPalette.tgz>. Feel free to
announce it to the list.
[...]
>> I've got a modified version of the old OmniGroup IB CVS Palette that
>> preserves .svn directories in nibs. I emailed a few people on the
>> subversion project about including it on the site, but never got a
>> response.
>>
>> I'd be happy to provide it to anyone looking to use subversion.

----- End forwarded message -----

For .rtfd files and anything else, I have attached a Python script I
wrote and use for restoring the .svn directories, just naively by
doing a svn up and moving the .svn directory back where it's supposed
to do. This will work for most cases except for the bizarre ones
where you've run svn switch or something, but since the versioning
infromation is totally wiped out in this case, I don't know what else
I can do :)

Use it, for example, as 'fixsvn "Read Me.rtfd"'. You'll need to fix
the path to svn in the script if it's not in /usr/local/bin.

Of course, if someone wants to contribute to true opaque collection
support in Subversion, I won't complain :)

-- 
=Nicholas Riley <njriley_at_uiuc.edu> | <http://www.uiuc.edu/ph/www/njriley>
        Pablo Research Group, Department of Computer Science and
  Medical Scholars Program, University of Illinois at Urbana-Champaign


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

  • text/plain attachment: fixsvn
Received on Sun Feb 23 06:05: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.