From: Juri Linkov <juri@linkov.net>
To: Eric Gillespie <epg@pretzelnet.org>
Cc: 60897@debbugs.gnu.org
Subject: bug#60897: 29.0.60; vc-revert fails to revert buffer
Date: Sun, 22 Jan 2023 19:12:53 +0200 [thread overview]
Message-ID: <8635827hie.fsf@mail.linkov.net> (raw)
In-Reply-To: <40201.1674262454@hassadar.pretzelnet.org> (Eric Gillespie's message of "Fri, 20 Jan 2023 18:54:14 -0600")
> Here's what I see:
>
> 1. edit two versioned files
> 2. mark them both in vc-dired
> 3. = to show the diff for the two marked files
> 4. C-x v u
>
> In emacs 27 and 28, both files are reverted.
In emacs 27 and 28 reverting was unpredictable
and depended on the parent buffer of *vc-diff*.
So for example, after typing = at the top of the vc-dir buffer
without marking files, C-x v u failed with such error:
(file-missing "Cannot open load file" "No such file or directory" "vc-nil")
> It seemed to go back to normal with commit
> 4803fba487d41f0817feab48b5095ef4b4940ff6 on my daily driver
> openSUSE laptop, but it's not working on my home FreeBSD box!
> I'll look into that more...
>
> I can't seem to make that fail a second time. But this was the
> error message I got:
>
> vc-do-command: Failed (status 128): git --no-pager apply --cached ../../../../tmp/git-patch11lenk
Did it pop up a buffer with an error output message?
> Which is a pretty strange path and which does not exist. If you
> add one more ../ (five total) you will indeed reach /tmp but that
> would be a strange way to reference it.
Hmm, the error comes from (vc-git-command nil 0 patch-file "apply" "--cached")
where patch-file is created by (make-nearby-temp-file "git-patch").
I guess make-nearby-temp-file makes such a relative name that looks strange.
next prev parent reply other threads:[~2023-01-22 17:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-18 1:09 bug#60897: 29.0.60; vc-revert fails to revert buffer Eric Gillespie
2023-01-18 17:29 ` Juri Linkov
2023-01-21 0:54 ` Eric Gillespie
2023-01-22 17:12 ` Juri Linkov [this message]
2023-01-22 17:17 ` Juri Linkov
2023-01-22 19:50 ` Eli Zaretskii
2023-01-23 7:51 ` Juri Linkov
2023-01-23 13:24 ` Eli Zaretskii
2023-01-24 17:46 ` Juri Linkov
2023-01-24 18:06 ` Eli Zaretskii
2023-01-24 18:18 ` Juri Linkov
2023-01-24 18:36 ` Eli Zaretskii
2023-01-24 18:49 ` Juri Linkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8635827hie.fsf@mail.linkov.net \
--to=juri@linkov.net \
--cc=60897@debbugs.gnu.org \
--cc=epg@pretzelnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).