Since subversion 1.7, only a top-level .svn dir is used. Make FindVCS
also deal with that. (Tested with repoman on Prefix SVN-based tree.)
outvcs = []
def seek(depth = None):
- """ Seek for distributed VCSes. """
+ """ Seek for VCSes that have a top-level data directory only. """
retvcs = []
pathprep = ''
retvcs.append('bzr')
if os.path.isdir(os.path.join(pathprep, '.hg')):
retvcs.append('hg')
+ if os.path.isdir(os.path.join(pathprep, '.svn')): # >=1.7
+ retvcs.append('svn')
if retvcs:
break
# Level zero VCS-es.
if os.path.isdir('CVS'):
outvcs.append('cvs')
- if os.path.isdir('.svn'):
+ if os.path.isdir('.svn'): # <1.7
outvcs.append('svn')
# If we already found one of 'level zeros', just take a quick look