From: Eric S. Raymond Date: Wed, 3 Oct 2012 06:34:29 +0000 (-0400) Subject: False-match avoidance suggested by birkenfeld. X-Git-Tag: 1.6~24 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=dab4c80d3e85bfb8ad671ab09e17771c669dbde9;p=irker.git False-match avoidance suggested by birkenfeld. --- diff --git a/irkerhook.py b/irkerhook.py index 244b65c..53d5e09 100755 --- a/irkerhook.py +++ b/irkerhook.py @@ -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