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

Re: Delete all branches created/modified before a certain date?

From: Andy Levy <andy.levy_at_gmail.com>
Date: Wed, 12 Aug 2009 10:16:16 -0400

On Wed, Aug 12, 2009 at 09:47, Johnny Lin<hijohnnylin_at_gmail.com> wrote:
> Is there a way to delete all branches created/modified before a certain date
> in svn?
> I know to delete branches you simply use svn rm, but I would like to do this
> for all branches not modified in the past 3 years.

Built in? No. But easily scriptable. Pseudocode:

svn ls <URL_TO_BRANCHES>
For each branch
svn info <URL_TO_BRANCH>
Inspect Last Changed Date
If Last Changed Date < today -3 years then svn delete <URL_TO_BRANCH>

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2382904

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-12 16:17:18 CEST

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.