Subject: bug#18514: 24.3; vc-dir sometimes guesses the wrong backend

From: Glenn Morris <[email-masked]>
Date: Sun, 21 Sep 2014 17:28:04 -0400

Barry A. Warsaw wrote:

> vc-dir sometimes guesses the wrong backend.  Here's a reproducible
> example.
>
> $ cd /tmp
> $ bzr init bzrinit
> $ bzr init-repo bzrinitrepo
> $ git init bzrinit/gitme
> $ git init bzrinitrepo/gitme
>
> M-x vc-dir RET /tmp/bzrinit/gitme
> M-x vc-dir RET /tmp/bzrinitrepo/gitme
>
> vc-dir chooses Bzr as the backend for /tmp/bzrinit/gitme but git as the
> backend for /tmp/bzrinitrepo/gitme.  In both cases, git should have been
> chosen.

This is http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8179 (et al) again.

vc currently loops over backends, then the directory tree.
That needs to be reversed, but no-one has gotten round to it.

(For your specific example, you can reorder vc-handled-backends.)