Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scan subversion repository for active branches

Tags:

svn

I have a dozen projects in the repository. The repository structure looks like below:

/ -------
   + project1 
       +------- trunk
       +------- tags
       +------- branches
   + project2

Our policy requires any active branch to be deleted after 30 day inactivity. However, there is no automatic to detect such branch. Occasionally I have some branch left out for too many days.

Is there a script to list branches, as well as their last check in date?

like image 340
cuteCAT Avatar asked Jun 20 '26 12:06

cuteCAT


1 Answers

Have you tried:

svn ls -v http://your.svn.server/path/branches

That will print the branches with the last revision that affected them, the user and the date.

like image 171
SteveMc Avatar answered Jun 23 '26 11:06

SteveMc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!