False-match avoidance suggested by birkenfeld.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 3 Oct 2012 06:34:29 +0000 (02:34 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 3 Oct 2012 06:34:29 +0000 (02:34 -0400)
irkerhook.py

index 244b65c68727428341e27941ae18cc0dcf6944da..53d5e0954d0f46a2936ddcc2a331085643352447 100755 (executable)
@@ -351,7 +351,10 @@ def hg_hook(ui, repo, _hooktype, node=None, _url=None, **_kwds):
     extractor = HgExtractor([(ui, repo)])
     ship(extractor, node, False)
 
-extractors = [GitExtractor, SvnExtractor, HgExtractor]
+# The files we use to identify a Subversion repo might occur as content
+# in a git or hg repo, but the special subdirectories for those are more
+# reliable indicators.  So test for Subversion last.
+extractors = [GitExtractor, HgExtractor, SvnExtractor]
 
 # VCS-dependent code ends here