GNU bug report logs - #37310
27.0.50; vc-revert: No such file or directory vc-nil

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; Reported by: Andrii Kolomoiets <andreyk.mad@HIDDEN>; dated Thu, 5 Sep 2019 13:52:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at submit) by debbugs.gnu.org; 5 Sep 2019 13:51:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 05 09:51:28 2019
Received: from localhost ([127.0.0.1]:34945 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5sAa-0006IQ-5E
	for submit <at> debbugs.gnu.org; Thu, 05 Sep 2019 09:51:28 -0400
Received: from lists.gnu.org ([209.51.188.17]:55780)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <andreyk.mad@HIDDEN>) id 1i5sAX-0006II-Hu
 for submit <at> debbugs.gnu.org; Thu, 05 Sep 2019 09:51:25 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51212)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <andreyk.mad@HIDDEN>) id 1i5sAW-0008OV-8F
 for bug-gnu-emacs@HIDDEN; Thu, 05 Sep 2019 09:51:25 -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,FREEMAIL_FROM,
 SPOOFED_FREEMAIL autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <andreyk.mad@HIDDEN>) id 1i5sAU-0007LM-BY
 for bug-gnu-emacs@HIDDEN; Thu, 05 Sep 2019 09:51:24 -0400
Received: from mail-lf1-x143.google.com ([2a00:1450:4864:20::143]:36863)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <andreyk.mad@HIDDEN>)
 id 1i5sAU-0007Ko-4B
 for bug-gnu-emacs@HIDDEN; Thu, 05 Sep 2019 09:51:22 -0400
Received: by mail-lf1-x143.google.com with SMTP id x80so2107799lff.3
 for <bug-gnu-emacs@HIDDEN>; Thu, 05 Sep 2019 06:51:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:content-transfer-encoding:mime-version:subject:message-id:date
 :to; bh=eyRjz4VvLXj1jEj09a7x5rIs1MCCpRuQmHIw7iNx4LM=;
 b=azj4baUHv76TxPspAXNNXZKTfbcf0WYN0DDzAUCfCCUAvPQEgPXT4XNCvOuCdKKWVW
 Kbhlmj+oCyjwZ7iTkcc10DXzSIxlrh7WgxzZ5AQj3lHXZhbzv8rY14lEUdCcfvwbgcDJ
 Bj4Pc/kjMoXXwhsfWvv0WaVU9WrwrqFLmHrm94w6sjrAUutkeo7hgkBfS2lLJX2jsgOz
 GtJu7xheKdYyfdnUULE6qqSdva4oaLYi1Rjf1iHob1faCNxSIkdYg1aUoFd9i1LVCdrw
 YtYDlBp+/m5udntLb0p76PBM8iJFItRi5Qjp3rfUWI2UbHwIjeUnfidMQcWksdff7lQu
 A1Pg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:content-transfer-encoding:mime-version
 :subject:message-id:date:to;
 bh=eyRjz4VvLXj1jEj09a7x5rIs1MCCpRuQmHIw7iNx4LM=;
 b=nHo/l4OCCvEniN94SWm0hCEpmSi1StDfUWNxeEPvaw8hIKg2ycITUA0yLDOLeN9FPe
 JQqfQ0hGHx54IRJPVYemiPvZM4I31YLNv94OzHJ+ytJ0+wfrtLZtdjBB3jU1fINiirRd
 D7F6A02ZJqTLNXoV1xNv/HRj6P6Y6+7uuQDDVBjbVZD3vnB1iD+HxeShNHe+95eIuid/
 n9u274gG3Vogh1+i6n/mNUL485Wr+ukb7uv1HUMiCVYb/p99pwjOSoC1gi7YWnfxF8Kp
 WlrrebM0vZeQIaUMQeMRdNWAku9HyFLhZVV1dbwx5ExVZAaa70Zk/gxJdquIbkNDxqid
 BO5g==
X-Gm-Message-State: APjAAAVx3xip4pyMLye7l8wslgjeKEYsey57V9LARCNcZkWSeFWaaRQD
 ZmeSP9KfnxX53Ts1ZmUYKdJq68At
X-Google-Smtp-Source: APXvYqzLD5Jl7lPdv+/zGt+1ivcI4pNPeeJNhl7y+lZPvkhB6/P6XRAn0qnlXoZGSlH1GpIhz4Jsjw==
X-Received: by 2002:a19:ee02:: with SMTP id g2mr2455906lfb.113.1567691479365; 
 Thu, 05 Sep 2019 06:51:19 -0700 (PDT)
Received: from [10.1.1.105] (188-42-207-82.ip.ukrtel.net. [82.207.42.188])
 by smtp.gmail.com with ESMTPSA id o10sm389953ljd.53.2019.09.05.06.51.18
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 05 Sep 2019 06:51:18 -0700 (PDT)
From: Andrii Kolomoiets <andreyk.mad@HIDDEN>
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Subject: 27.0.50; vc-revert: No such file or directory vc-nil
Message-Id: <C475AD6B-90F6-4E84-8CC4-392CE53961ED@HIDDEN>
Date: Thu, 5 Sep 2019 16:51:17 +0300
To: bug-gnu-emacs@HIDDEN
X-Mailer: Apple Mail (2.3445.104.11)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2a00:1450:4864:20::143
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://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: -2.3 (--)

Steps to reproduce:

1. mkdir gittest && cd gittest
2. git init
3. echo "foo" > bar.txt
4. git add bar.txt
5. git commit -m "bar.txt added"
6. echo "baz" >> bar.txt
7. emacs -Q
8. C-x v d <RET> -- to open vc-dir for gittest directory
9. C-x v u
10. yes <RET> -- to confirm revert

Debugger entered--Lisp error: (file-missing "Cannot open load file" "No =
such file or directory" "vc-nil")
  require(vc-nil)
  vc-find-backend-function(nil make-version-backups-p)
  vc-call-backend(nil make-version-backups-p "/Users/mad/gittest/")
  vc-version-backup-file("/Users/mad/gittest/")
  vc-revert-file("/Users/mad/gittest/")
  vc-revert()
  funcall-interactively(vc-revert)
  call-interactively(vc-revert nil nil)
  command-execute(vc-revert)

Changing 'git' to 'hg' in the steps to reproduce above leads to the same
error.
Same issue in Emacs 26.3.

vc-backend returns nil for repository root dir. Maybe vc-registered
should return t for root repository directory and all subdirs.
Evaluating (vc-find-root "/Users/mad/gittest" ".git") returns
"~/gittest/" but (vc-registered "/Users/mad/gittest") returns nil.




Acknowledgement sent to Andrii Kolomoiets <andreyk.mad@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#37310; 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: Mon, 25 Nov 2019 12:00:02 UTC

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