You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jace Davies <ja...@ish.com.au> on 2005/02/04 07:31:22 UTC
Directories and svn
I am having trouble with Subversion (1.1.1, the newest FreeBSD port)
working with directories.
If a directory has its properties modified while checked out as a part
of a working copy, I get this error message
subversion/libsvn_wc/lock.c:646: (apr_err=155005)
svn: Working copy '<directory.name>' not locked
when attempting an svn update command.
svn status gives the following output:
? <file.name>
M <file.name.1>
M <file.name.2>
~ <directory.name>
The problem occurs with identical working copies on OS X and Linux
platforms.
I'd very much appreciate any assistance in finding out why this is the
case.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Directories and svn
Posted by Ben Collins-Sussman <su...@collab.net>.
On Feb 4, 2005, at 1:31 AM, Jace Davies wrote:
> I am having trouble with Subversion (1.1.1, the newest FreeBSD port)
> working with directories.
>
> If a directory has its properties modified while checked out as a part
> of a working copy, I get this error message
>
> subversion/libsvn_wc/lock.c:646: (apr_err=155005)
> svn: Working copy '<directory.name>' not locked
>
> when attempting an svn update command.
>
> svn status gives the following output:
>
> ? <file.name>
> M <file.name.1>
> M <file.name.2>
> ~ <directory.name>
>
> The problem occurs with identical working copies on OS X and Linux
> platforms.
>
That tilde next to the directory is important. It means that the
.svn/entries file thinks that directory.name is supposed to be a file,
but is actually a dir, or vice versa. I have no clue as to how that
happened... but suffice it to say, your working copy is pretty messed
up.
You say this problem is reproducible on both OSX and Linux... but
what's the recipe? Give us an exact set of instructions so we can
reproduce. Or, show us a transcript of the exact commands you typed
and the results of each command.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Directories and svn
Posted by Ryan Schmidt <su...@ryandesign.com>.
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
Re: Directories and svn
Posted by Jace Davies <ja...@ish.com.au>.
Thanks, everyone, for all your help!
I took a look at the known issue for this problem (didn't spot it when
looking frantically a couple of days ago - the link was much
appreciated), and it appears I'm not alone.
I'll just have to apply that manual workaround for the time being.
On 07/02/2005, at 1:05 AM, Jim Correia wrote:
> On Feb 5, 2005, at 2:17 PM, Ryan Schmidt wrote:
>
>> On 05.02.2005, at 17:03, Jeremy Pereira wrote:
>>
>>> On Feb 4, 2005, at 17: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 interface builder problem is fixed. IB now understands about
>>> the .svn directory.
>>
>> I confirmed that this issue still exists in TextEdit in 10.3.7. Do we
>> know if a Radar bug already exists for this problem in TextEdit? I'd
>> be happy to submit one if necessary.
>
> Getting Interface Builder fixed probably solved the majority of the
> problem.
>
> A different way to solve the remaining problems is not to get each
> infracting application fixed, but to add opaque collection support
> into subversion (without going down the road of tar wrappers and all
> the badness that brought with it.)
>
> <http://subversion.tigris.org/issues/show_bug.cgi?id=707>
>
> Jim
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Directories and svn
Posted by Jim Correia <ji...@pobox.com>.
On Feb 5, 2005, at 2:17 PM, Ryan Schmidt wrote:
> On 05.02.2005, at 17:03, Jeremy Pereira wrote:
>
>> On Feb 4, 2005, at 17: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 interface builder problem is fixed. IB now understands about the
>> .svn directory.
>
> I confirmed that this issue still exists in TextEdit in 10.3.7. Do we
> know if a Radar bug already exists for this problem in TextEdit? I'd
> be happy to submit one if necessary.
Getting Interface Builder fixed probably solved the majority of the
problem.
A different way to solve the remaining problems is not to get each
infracting application fixed, but to add opaque collection support into
subversion (without going down the road of tar wrappers and all the
badness that brought with it.)
<http://subversion.tigris.org/issues/show_bug.cgi?id=707>
Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Directories and svn
Posted by Ryan Schmidt <su...@ryandesign.com>.
On 05.02.2005, at 17:03, Jeremy Pereira wrote:
> On Feb 4, 2005, at 17: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 interface builder problem is fixed. IB now understands about the
> .svn directory.
I confirmed that this issue still exists in TextEdit in 10.3.7. Do we
know if a Radar bug already exists for this problem in TextEdit? I'd be
happy to submit one if necessary.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Directories and svn
Posted by Jeremy Pereira <je...@ntlworld.com>.
On Feb 4, 2005, at 17: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).
>
The interface builder problem is fixed. IB now understands about the
.svn directory.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Directories and svn
Posted by Giles Williams <gi...@aegidian.org>.
On 4 Feb 2005, at 07:31, Jace Davies wrote:
> I am having trouble with Subversion (1.1.1, the newest FreeBSD port)
> working with directories.
>
> If a directory has its properties modified while checked out as a part
> of a working copy, I get this error message
>
> subversion/libsvn_wc/lock.c:646: (apr_err=155005)
> svn: Working copy '<directory.name>' not locked
>
> when attempting an svn update command.
>
> svn status gives the following output:
>
> ? <file.name>
> M <file.name.1>
> M <file.name.2>
> ~ <directory.name>
>
> The problem occurs with identical working copies on OS X and Linux
> platforms.
>
> I'd very much appreciate any assistance in finding out why this is the
> case.
I have a similar problem working with some file packages (aka bundles)
under OSX.
For example I have a file package ReadMe.rtfd under version control,
which is a folder consisting of an RTF text file (TXT.rtf), a graphic
(oolite-logo1.png), and a hidden file called .textattributes.dict
The directory looks like this:
unas:~/development/svn-working-copies/oolite giles$ ls -al ReadMe.rtfd
total 104
drwxr-xr-x 6 giles wheel 204 4 Feb 16:50 .
drwxr-xr-x 447 giles wheel 15198 4 Feb 16:50 ..
drwxr-xr-x 11 giles wheel 374 4 Feb 16:50 .svn
-rw-r--r-- 1 giles wheel 0 4 Feb 16:50 .typeAttributes.dict
-rw-r--r-- 1 giles wheel 16667 4 Feb 16:50 TXT.rtf
-rw-r--r-- 1 giles wheel 30551 4 Feb 16:50 oolite-logo1.png
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).
i.e.
unas:~/development/svn-working-copies/oolite giles$ cp -r
ReadMe.rtfd/.svn ~/ReadMe.rtfd.svn
>> Make the necessary changes to ReadMe.rtfd in TextEdit and save,
then...
unas:~/development/svn-working-copies/oolite giles$ cp -r
~/ReadMe.rtfd.svn ReadMe.rtfd/.svn
unas:~/development/svn-working-copies/oolite giles$ svn status
--show-updates
M 524 ReadMe.rtfd/TXT.rtf
Status against revision: 524
unas:~/development/svn-working-copies/oolite giles$ svn commit -m
"updated the ReadMe file"
Sending ReadMe.rtfd/TXT.rtf
Transmitting file data .
Committed revision 525.
I hope that this helps, I realise it's not an ideal solution - but I
can't see a way to fix this without major changes to the way either
Subversion or Mac OS X work.
-- Giles Williams
(first message to SVN user, I hope this is okay).