GNU bug report logs -
#37310
27.0.50; vc-revert: No such file or directory vc-nil
Previous Next
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.
Full log
View this message in rfc822 format
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.
This bug report was last modified 95 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.