GNU bug report logs -
#6399
Confirm vc commits when the files do not match those marked in vc-dir
Previous Next
Reported by: Glenn Morris <rgm <at> gnu.org>
Date: Fri, 11 Jun 2010 03:51:02 UTC
Severity: wishlist
Merged with 7675
Found in version 24.0.50
Fixed in version 31.1
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 6399 in the body.
You can then email your comments to 6399 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6399; Package
emacs.
(Fri, 11 Jun 2010 03:51:02 GMT)
Full text and
rfc822 format available.
Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):
Package: emacs
Severity: wishlist
I've made this mistake a few times now:
1) Mark say 5 files in vc-dir.
2) Press v to get a vc-log buffer.
3) Realize I should not have marked one of the 5 files, and unmark it
in the vc-dir buffer.
4) Forget to kill the existing vc-log buffer, and so end up committing
all 5 files anyway.
I wish that at step 4 when I try to commit, Emacs would check if the
files about to be commited match those marked in the vc-dir buffer,
and if not ask me to confirm the commit.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6399; Package
emacs.
(Fri, 11 Jun 2010 05:55:02 GMT)
Full text and
rfc822 format available.
Message #6 received at 6399 <at> debbugs.gnu.org (full text, mbox):
> I've made this mistake a few times now:
> 1) Mark say 5 files in vc-dir.
> 2) Press v to get a vc-log buffer.
> 3) Realize I should not have marked one of the 5 files, and unmark it
> in the vc-dir buffer.
> 4) Forget to kill the existing vc-log buffer, and so end up committing
> all 5 files anyway.
> I wish that at step 4 when I try to commit, Emacs would check if the
> files about to be commited match those marked in the vc-dir buffer,
> and if not ask me to confirm the commit.
Agreed. That's what PCL-CVS does. PCL-CVS goes one step further,
actually: if there's a discrepancy (and the user confirms that the
discrepancy is OK), it's the *cvs* (aka *vc-dir*) selection that takes
precedence over the list of files that was active when the vc-log buffer
was created.
Stefan
Forcibly Merged 6399 7675.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org.
(Sat, 18 Dec 2010 21:29:02 GMT)
Full text and
rfc822 format available.
Added tag(s) patch.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org.
(Sat, 18 Dec 2010 21:29:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#6399; Package
emacs.
(Sun, 18 Jul 2021 13:11:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 6399 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris <rgm <at> gnu.org> writes:
> I've made this mistake a few times now:
>
> 1) Mark say 5 files in vc-dir.
>
> 2) Press v to get a vc-log buffer.
>
> 3) Realize I should not have marked one of the 5 files, and unmark it
> in the vc-dir buffer.
>
> 4) Forget to kill the existing vc-log buffer, and so end up committing
> all 5 files anyway.
Somehow that has never happened to me, so I guess it's never occurred to
me to do something like that. But I see that the problem is still
present in Emacs 28.
> I wish that at step 4 when I try to commit, Emacs would check if the
> files about to be commited match those marked in the vc-dir buffer,
> and if not ask me to confirm the commit.
Yeah, that seems like a good idea. I can't really imagine somebody
altering the marked files in the vc-dir buffer without wanting to affect
which files get checked in on the `C-c C-c'. But before I start poking
at this -- would adding a query like this disrupt somebody's work flow?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) moreinfo.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org.
(Sun, 18 Jul 2021 13:12:02 GMT)
Full text and
rfc822 format available.
Removed tag(s) moreinfo.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org.
(Mon, 16 Aug 2021 12:16:01 GMT)
Full text and
rfc822 format available.
Reply sent
to
Sean Whitton <spwhitton <at> spwhitton.name>:
You have taken responsibility.
(Tue, 08 Jul 2025 16:49:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Glenn Morris <rgm <at> gnu.org>:
bug acknowledged by developer.
(Tue, 08 Jul 2025 16:49:02 GMT)
Full text and
rfc822 format available.
Message #22 received at 6399-done <at> debbugs.gnu.org (full text, mbox):
Version: 31.1
Hello,
I've implemented a check for this on master.
I went with not changing the file selection to match *vc-dir*, instead
just asking the user to confirm they wish to proceed with the old
selection.
I did this because we have various hooks and mode-specific checks that
have already run by the time we get to C-c C-c, and we would bypass them
if we let the fileset change.
--
Sean Whitton
Reply sent
to
Sean Whitton <spwhitton <at> spwhitton.name>:
You have taken responsibility.
(Tue, 08 Jul 2025 16:49:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Bob Rogers <rogers-emacs <at> rgrjr.dyndns.org>:
bug acknowledged by developer.
(Tue, 08 Jul 2025 16:49:02 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.
(Wed, 06 Aug 2025 11:24:11 GMT)
Full text and
rfc822 format available.
This bug report was last modified 99 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.