0

Over the years, I have created several repositories on one computer. How do I find for all local svn repositories?

I do have a solution but want to know if you know anything better:

  find ~/ -name rep-cache.db

But the problem is that this solution does not tell me when the repo was last updated. I am not asking for how to search within a repository, which has been asked before or for example here.

Community
  • 1
  • 1
wander95
  • 1,298
  • 1
  • 15
  • 22

1 Answers1

0

To get the last update you could use any of the below

  1. svnlook date to find the last commit date

    find ~/ \
        -type d -name db \
        -print \
        -exec sh -c 'svnlook date $(dirname {})' \;
    

    This would print error message if it finds a directory named db which is not a svn repo.

  2. ls -l, if you are interested only in the last modified date

    find ~/ \
        -name rep-cache.db \
        -print \
        -exec ls -l {} \;
    
Libin Varghese
  • 1,506
  • 13
  • 19