GNU bug report logs - #18514
24.3; vc-dir sometimes guesses the wrong backend

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: barry@HIDDEN (Barry A. Warsaw); merged with #3807, #8179, #8603; dated Sat, 20 Sep 2014 22:42:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 18514 <at> debbugs.gnu.org:


Received: (at 18514) by debbugs.gnu.org; 22 Sep 2014 00:46:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 21 20:46:19 2014
Received: from localhost ([127.0.0.1]:47811 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XVrlh-0000H2-TC
	for submit <at> debbugs.gnu.org; Sun, 21 Sep 2014 20:46:18 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:33582)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1XVrld-0000Gr-Rc
 for 18514 <at> debbugs.gnu.org; Sun, 21 Sep 2014 20:46:15 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ArUGAIDvNVNFpZEG/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqg0wh
X-IPAS-Result: ArUGAIDvNVNFpZEG/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCws0EhQYDSSIBAjSGReOegeEOASpGYFqg0wh
X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="90502542"
Received: from 69-165-145-6.dsl.teksavvy.com (HELO pastel.home)
 ([69.165.145.6])
 by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA;
 21 Sep 2014 20:46:12 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id 91CB761782; Sun, 21 Sep 2014 20:46:12 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Barry Warsaw <barry@HIDDEN>
Subject: Re: bug#18514: 24.3; vc-dir sometimes guesses the wrong backend
Message-ID: <jwva95sze2z.fsf-monnier+emacsbugs@HIDDEN>
References: <87sijlj4oo.fsf@HIDDEN>
 <jwv8ulcvedx.fsf-monnier+emacsbugs@HIDDEN>
 <20140921180053.7d6677c8@HIDDEN>
Date: Sun, 21 Sep 2014 20:46:12 -0400
In-Reply-To: <20140921180053.7d6677c8@HIDDEN> (Barry Warsaw's
 message of "Sun, 21 Sep 2014 18:00:53 -0400")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 18514
Cc: 18514 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

> Is it possible to force vc-dir to use a specific vcs on invocation, or to
> change vc-dir's backend after the fact?

You can change vc-handled-backends whenever you feel like it.  But I'm
not sure what would be a good hook to do it at the right time.

You can change VC backend after the fact via `vc-switch-backend',
although it was not written with vc-dir in mind, so I'm not sure it'll
work for that case.

> If this bugs me enough, I'll take a crack at a workaround/fix.

The core of the problem is that currently, every backend is responsible
for doing its own "walk up the parent directories" since some backends do
that and others don't.  Back in the days of SVN, such walks did not
exist at all, but nowadays they're "the normal case".

If you look at vc-default-registered, you'll see what was considered
"normal" many years ago.  Nowadays 99.9% of Emacs users have no clue
what those master-templates might be for.

So we need to change vc-registered (and the associated `registered'
backend functions) so that it does the walk up the parent directories,
and then calls each backend, yet also let the backend "refuse" to do
this walk (in case of RCS or SCCS).


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#18514; Package emacs. Full text available.

Message received at 18514 <at> debbugs.gnu.org:


Received: (at 18514) by debbugs.gnu.org; 21 Sep 2014 22:01:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 21 18:01:46 2014
Received: from localhost ([127.0.0.1]:47761 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XVpCP-0004nw-6r
	for submit <at> debbugs.gnu.org; Sun, 21 Sep 2014 18:01:46 -0400
Received: from mail.wooz.org ([216.15.33.194]:56557)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <barry@HIDDEN>) id 1XVpCJ-0004ni-5A
 for 18514 <at> debbugs.gnu.org; Sun, 21 Sep 2014 18:01:40 -0400
Received: from localhost (localhost [127.0.0.1])
 by mail.wooz.org (Postfix) with ESMTP id 3F15C1080358;
 Sun, 21 Sep 2014 18:01:34 -0400 (EDT)
Received: from mail.wooz.org ([127.0.0.1])
 by localhost (carnies.wooz.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id ehvDzkNdea8p; Sun, 21 Sep 2014 18:01:25 -0400 (EDT)
Received: from anarchist.wooz.org (anarchist.wooz.org [192.168.11.111])
 by mail.wooz.org (Postfix) with ESMTPSA id C03B5108059E;
 Sun, 21 Sep 2014 18:00:54 -0400 (EDT)
Date: Sun, 21 Sep 2014 18:00:53 -0400
From: Barry Warsaw <barry@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#18514: 24.3; vc-dir sometimes guesses the wrong backend
Message-ID: <20140921180053.7d6677c8@HIDDEN>
In-Reply-To: <jwv8ulcvedx.fsf-monnier+emacsbugs@HIDDEN>
References: <87sijlj4oo.fsf@HIDDEN>
 <jwv8ulcvedx.fsf-monnier+emacsbugs@HIDDEN>
Organization: Damn Crazy Followers of the Horn
X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.24; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 boundary="Sig_/3sYNTSF39zRiF+KUdLBg0k6"; protocol="application/pgp-signature"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 18514
Cc: 18514 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

--Sig_/3sYNTSF39zRiF+KUdLBg0k6
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Sep 21, 2014, at 05:48 PM, Stefan Monnier wrote:

>You can skip the "bzr init-repo bzrinitrepo" part since it doesn't make
>any difference.

Right, that was just for illustration.  I had spoken to someone who thought
that maybe vc-dir wasn't handling bzr shared repo directories correctly.

>Patch welcome.  In the mean: don't nest projects in each other if they
>use the same backend.

That won't be possible for me, since my $HOME is under bzr, and project
subdirs under that are of various vcses (including bzr, git, hg, and svn).

>Or try to make sure the inner VCS always comes before the outer one in
>vc-handled-backends.

Is it possible to force vc-dir to use a specific vcs on invocation, or to
change vc-dir's backend after the fact?

If this bugs me enough, I'll take a crack at a workaround/fix.

--Sig_/3sYNTSF39zRiF+KUdLBg0k6
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJUH0qVAAoJEBJutWOnSwa/guMQAJGtwrGJpFPKVM3Xzqa+sH5P
yDia/dEYp8wxkZmOQoB+WB9yMG7aNzKIN/5zuMIGtC9foWVZIONu456U7FB/5FkS
WfOP82HjmM65TXWEvHY42L0HTou+nzyPh21h/nbABcPq2kbqrzsgpK85SszcGAYs
aW3LdT9Z/0YfDJZbgIoVrURBjv4niBdOENKlQwErHSmBGqY1yYq5aPh3IFDFs1F3
ZctPxOhzFir7xAsOKCE9XMONreBGp81l+S24xZmSIMqoLTd6XNiSX5weV4/I+4y/
YtqFMEsbCsvokt3kymd5vQq91RS8/+QCOhD/gktsvIjKSWtizo0XzTMJrbZ04xWI
hyQQqBSuhIyM/jjyFHZ88hiblLKrRPgnXswnVF+rmiLSsZbmBOndh4TjCo4qtmP7
PQWHfAmEJS6wdAUPQOr1WUdkPDDKmf37my+Z7m7xNZ2dSDY7n5p7lFXi42FLoD1u
Yv+7MEw+bXp1X8sv+FbtWYw8cQck7ev1FZHSeuFTeuM86Pj5J40TbBsInyF7Cg6r
fhid4Saw/gSCvDN/SvH1cLDWG5d/yVWuyIFOp2ll5M4HrnF9dZxiZq5toUEt1VJv
XBIQViSV/D4ZiVm3IiRwLjEb72V9p8RtLMX9lFx/cb9S1bRWOtuvWwkP3iYQ50J3
fe4/8r+hf8VqeA+g5a3H
=QNr/
-----END PGP SIGNATURE-----

--Sig_/3sYNTSF39zRiF+KUdLBg0k6--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#18514; Package emacs. Full text available.

Message received at 18514 <at> debbugs.gnu.org:


Received: (at 18514) by debbugs.gnu.org; 21 Sep 2014 21:48:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 21 17:48:48 2014
Received: from localhost ([127.0.0.1]:47754 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XVozw-0003G9-31
	for submit <at> debbugs.gnu.org; Sun, 21 Sep 2014 17:48:48 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.181]:26712)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1XVozt-0003Fy-7b
 for 18514 <at> debbugs.gnu.org; Sun, 21 Sep 2014 17:48:46 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: ArQGAIDvNVNFpZEG/2dsb2JhbABZgwaDSsA9gRcXdIImAQEEViMQCzQSFBgNiDDSGReOegeEOAEDlGKUN4Fqg0wh
X-IPAS-Result: ArQGAIDvNVNFpZEG/2dsb2JhbABZgwaDSsA9gRcXdIImAQEEViMQCzQSFBgNiDDSGReOegeEOAEDlGKUN4Fqg0wh
X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="90495696"
Received: from 69-165-145-6.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net)
 ([69.165.145.6])
 by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA;
 21 Sep 2014 17:48:44 -0400
Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848)
 id 107E5AE80E; Sun, 21 Sep 2014 17:48:44 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: barry@HIDDEN (Barry A. Warsaw)
Subject: Re: bug#18514: 24.3; vc-dir sometimes guesses the wrong backend
Message-ID: <jwv8ulcvedx.fsf-monnier+emacsbugs@HIDDEN>
References: <87sijlj4oo.fsf@HIDDEN>
Date: Sun, 21 Sep 2014 17:48:44 -0400
In-Reply-To: <87sijlj4oo.fsf@HIDDEN> (Barry A. Warsaw's message of
 "Sat, 20 Sep 2014 18:41:11 -0400")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 18514
Cc: 18514 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

> $ cd /tmp
> $ bzr init bzrinit
> $ bzr init-repo bzrinitrepo
> $ git init bzrinit/gitme
> $ git init bzrinitrepo/gitme

You can skip the "bzr init-repo bzrinitrepo" part since it doesn't make
any difference.  The problem is known: the two loops (the one that
cycles through the VCS backends and the one that cycles through the
various parent directories) are not nested in the right order.

Patch welcome.  In the mean: don't nest projects in each other if they
use the same backend.  Or try to make sure the inner VCS always comes
before the outer one in vc-handled-backends.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#18514; Package emacs. Full text available.
Forcibly Merged 3807 8179 8603 18514. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 18514 <at> debbugs.gnu.org:


Received: (at 18514) by debbugs.gnu.org; 21 Sep 2014 21:28:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 21 17:28:08 2014
Received: from localhost ([127.0.0.1]:47736 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XVofw-0001Ty-Bo
	for submit <at> debbugs.gnu.org; Sun, 21 Sep 2014 17:28:08 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:41977)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <rgm@HIDDEN>) id 1XVoft-0001Tq-Kz
 for 18514 <at> debbugs.gnu.org; Sun, 21 Sep 2014 17:28:06 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
 (envelope-from <rgm@HIDDEN>)
 id 1XVofs-00073Q-NS; Sun, 21 Sep 2014 17:28:04 -0400
From: Glenn Morris <rgm@HIDDEN>
To: barry@HIDDEN (Barry A. Warsaw)
Subject: Re: bug#18514: 24.3; vc-dir sometimes guesses the wrong backend
References: <87sijlj4oo.fsf@HIDDEN>
X-Spook: Skipjack corporate security South Africa Hamas Aladdin
X-Ran: 4$ZyP-c-VK9=N]=x`;-Rj*HNg<}`?GQ->M])^xI'A3{l3vUvK>ERX*r4RT:iU2d~M:ct9?
X-Hue: blue
X-Attribution: GM
Date: Sun, 21 Sep 2014 17:28:04 -0400
In-Reply-To: <87sijlj4oo.fsf@HIDDEN> (Barry A. Warsaw's message of
 "Sat, 20 Sep 2014 18:41:11 -0400")
Message-ID: <0goau84qaj.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -5.8 (-----)
X-Debbugs-Envelope-To: 18514
Cc: 18514 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.8 (-----)

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.)





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#18514; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Sep 2014 22:41:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Sep 20 18:41:59 2014
Received: from localhost ([127.0.0.1]:46884 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1XVTLq-0000c8-MQ
	for submit <at> debbugs.gnu.org; Sat, 20 Sep 2014 18:41:59 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51077)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <barry@HIDDEN>) id 1XVTLm-0000bv-Ac
 for submit <at> debbugs.gnu.org; Sat, 20 Sep 2014 18:41:55 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <barry@HIDDEN>) id 1XVTLg-0001Td-3X
 for submit <at> debbugs.gnu.org; Sat, 20 Sep 2014 18:41:54 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44583)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <barry@HIDDEN>) id 1XVTLg-0001TI-0H
 for submit <at> debbugs.gnu.org; Sat, 20 Sep 2014 18:41:48 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52767)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <barry@HIDDEN>) id 1XVTLV-0005r5-Gq
 for bug-gnu-emacs@HIDDEN; Sat, 20 Sep 2014 18:41:42 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <barry@HIDDEN>) id 1XVTLQ-0001ST-DU
 for bug-gnu-emacs@HIDDEN; Sat, 20 Sep 2014 18:41:37 -0400
Received: from mail.wooz.org ([216.15.33.194]:49080)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <barry@HIDDEN>) id 1XVTLQ-0001QC-7H
 for bug-gnu-emacs@HIDDEN; Sat, 20 Sep 2014 18:41:32 -0400
Received: from localhost (localhost [127.0.0.1])
 by mail.wooz.org (Postfix) with ESMTP id B8C3A10803AB
 for <bug-gnu-emacs@HIDDEN>; Sat, 20 Sep 2014 18:41:19 -0400 (EDT)
Received: from mail.wooz.org ([127.0.0.1])
 by localhost (carnies.wooz.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id DbsZ7g2-ahQz for <bug-gnu-emacs@HIDDEN>;
 Sat, 20 Sep 2014 18:41:14 -0400 (EDT)
Received: from anarchist.wooz.org (anarchist.wooz.org [192.168.11.111])
 by mail.wooz.org (Postfix) with ESMTPS id A1E2510801F6
 for <bug-gnu-emacs@HIDDEN>; Sat, 20 Sep 2014 18:41:14 -0400 (EDT)
From: barry@HIDDEN (Barry A. Warsaw)
To: bug-gnu-emacs@HIDDEN
Subject: 24.3; vc-dir sometimes guesses the wrong backend
Date: Sat, 20 Sep 2014 18:41:11 -0400
Message-ID: <87sijlj4oo.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)


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.

In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.9)
 of 2014-06-06 on brownie, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11600000
System Description:	Ubuntu Utopic Unicorn (development branch)

Configured using:
 `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var/lib' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp'
 '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes'
 '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars'
 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector
 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall'
 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'
 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

Important settings:
  value of $LC_COLLATE: en_US.UTF-8
  value of $LC_CTYPE: en_US.UTF-8
  value of $LC_MESSAGES: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: VC dir

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <escape> x v c 
- d i r <return> b z r i n i <tab> / g i <tab> <return> 
<escape> x v c - d i r <return> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
r e <tab> g i t m e <tab> <return> <escape> x r e p 
o r t - e m <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
You can run the command `vc-dir' with C-x v d
error in process sentinel: vc-dir-update: Wrong type argument: arrayp, nil
error in process sentinel: Wrong type argument: arrayp, nil
You can run the command `vc-dir' with C-x v d

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils vc-git vc-bzr vc-sccs vc-svn vc-cvs vc-rcs
vc-dir ewoc vc vc-dispatcher time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fringe tabulated-list newcomment lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak
czech european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)




Acknowledgement sent to barry@HIDDEN (Barry A. Warsaw):
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#18514; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.