You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Johnny Lin <hi...@gmail.com> on 2009/08/12 13:47:23 UTC

Delete all branches created/modified before a certain date?

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.

Thanks
Johnny

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

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

Posted by Andy Levy <an...@gmail.com>.
On Wed, Aug 12, 2009 at 09:47, Johnny Lin<hi...@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@subversion.tigris.org].