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

Re: Renaming a directory in SVN

From: Stein Somers <ssomers_at_opnet.com>
Date: Wed, 04 Nov 2009 13:59:17 +0100

> Is there a way for a hook script to detect when a directory is renamed
> rather than just deleted and a new one added?

Yes there is a way. If a directory was renamed or otherwise copied, the added
directory will be a copy of some versioned directory, not a plain addition.

What the way is, I don't know. I assume svnlook on the transaction will tell
you what path and revision the new directory is a copy of. Then you can
svnlook at that old directory to see what was inside. But then you have to
merge the contents with any changes inside the renamed directory being
committed in the same transaction. Good luck!

-- 
Stein
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2414398
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-04 14:00:31 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.