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

Previous Next

Package: emacs;

Reported by: Andrii Kolomoiets <andreyk.mad <at> gmail.com>

Date: Thu, 5 Sep 2019 13:52:02 UTC

Severity: normal

Tags: confirmed

Merged with 43464

Found in versions 27.0.50, 28.0.50

Done: Sean Whitton <spwhitton <at> spwhitton.name>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37310 in the body.
You can then email your comments to 37310 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#37310; Package emacs. (Thu, 05 Sep 2019 13:52:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andrii Kolomoiets <andreyk.mad <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 05 Sep 2019 13:52:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andrii Kolomoiets <andreyk.mad <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; vc-revert: No such file or directory vc-nil
Date: Thu, 5 Sep 2019 16:51:17 +0300
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.




Forcibly Merged 37310 43464. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 01 Nov 2020 15:18:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 18 Mar 2025 11:24:16 GMT) Full text and rfc822 format available.

This bug report was last modified 54 days ago.

Previous Next


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