0

How do you use svnkit to enumerate svn repositories in a root directory?

Jason S
  • 184,598
  • 164
  • 608
  • 970
  • Have you already looked through this? https://wiki.svnkit.com/Managing_Repository_With_SVNKit – Critical Skill Oct 15 '09 at 07:16
  • How does that help? I'm talking about multiple svn repositories beneath one root directory. As far as I can tell SVNKit gives you lots of features once you know a particular repository's path, but I can't find an enumerate-repository feature. – Jason S Oct 15 '09 at 13:01

2 Answers2

2

I think (I worked with svn kit 1 year ago) you have to manually list all directories next to your repository path:

So if your repopath is:

/var/svn/myrepo

you should list

/var/svn/

and check all directories by connecting to them (just try to svn ls)

Peter Parker
  • 29,093
  • 5
  • 52
  • 80
  • 1
    that's what I ended up doing... you still have to try doing some svnkit operation and be prepared for it to throw an exception if a subdirectory is not an svn repository. It would have been cleaner if they had a way of testing/enumerating a directory w/o throwing exceptions. – Jason S Oct 16 '09 at 13:13
1

I don't know much about svnkit but consider performing a recursive search for a svn file that indicates the presence of a svn repository...

I forget the structure of a svn repo but look for hidden files and folders that start with ".". I think .svn is a hidden folder that indicates a svn repo?

vinnybad
  • 2,102
  • 3
  • 19
  • 29