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

Subversion peculiar behavior

From: Vahid Vafaei <vahid.vafaei_at_impinj.com>
Date: Mon, 12 Jan 2009 13:25:00 -0800



I am observing a behavior that is rather strange. I would like to see it
here is an explanation for this behavior.


1. Delete a subdirectory called x (regular delete ie. rm -r x) from a
svn managed directory y.
2. Create the same directory x (i.e mkdir x) or copy an unmanaged
directory to the same name x under y.
3. Now if you execute svn update on directory y, svn prints:
D y/x
I think this means the directory x is marked for deletion or removal and
svn removes x from y/.svn/enteries file.
4. Delete (i.e. rm -r) the x directory again.
Now you will not be able to get the x directory back from the repository
using the svn update command. However, by accident, I found out that you
can get it back if you specifically mentioned the x directory (i.e. svn
update x). I don't think this is documented anywhere. Is it?
Can anyone explain why svn behaves this way?
Believe it or not people do this often and then wonder why svn update
does not bring back the missing directory.

Thanks and any help is greatly appreciated.




To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-01-13 14:06:04 CET

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.