unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6399: Confirm vc commits when the files do not match those marked in vc-dir
@ 2010-06-11  3:50 Glenn Morris
  2010-06-11  5:53 ` Stefan Monnier
  2021-07-18 13:10 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 3+ messages in thread
From: Glenn Morris @ 2010-06-11  3:50 UTC (permalink / raw)
  To: 6399

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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#6399: Confirm vc commits when the files do not match those marked in vc-dir
  2010-06-11  3:50 bug#6399: Confirm vc commits when the files do not match those marked in vc-dir Glenn Morris
@ 2010-06-11  5:53 ` Stefan Monnier
  2021-07-18 13:10 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2010-06-11  5:53 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 6399

> 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







^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#6399: Confirm vc commits when the files do not match those marked in vc-dir
  2010-06-11  3:50 bug#6399: Confirm vc commits when the files do not match those marked in vc-dir Glenn Morris
  2010-06-11  5:53 ` Stefan Monnier
@ 2021-07-18 13:10 ` Lars Ingebrigtsen
  1 sibling, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-07-18 13:10 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 6399

Glenn Morris <rgm@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-18 13:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-11  3:50 bug#6399: Confirm vc commits when the files do not match those marked in vc-dir Glenn Morris
2010-06-11  5:53 ` Stefan Monnier
2021-07-18 13:10 ` Lars Ingebrigtsen

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).