Get all branch names in SVN

前端 未结 4 1938
我寻月下人不归
我寻月下人不归 2020-12-13 12:01

How do I get the list of all SVN branches which are more than x years old?

I use SVN on CentOS, and I have sventon for viewing all the repository.

4条回答
  •  盖世英雄少女心
    2020-12-13 12:44

    I figured out another way to do this, but you need sventon or another tool which lists all contents of your SVN repository.

    Step 1: From your sventon view, copy the list of branches. This would include revision, author and date.

    Step 2: Open Excel and do a paste special.

    Step 3: Filter the date column to show dates less than x years old.

    Result: All branches which are less than x years old. This list was useful to me to do an svn delete --targets listofoldbranchnames.txt.

提交回复
热议问题