GNU bug report logs - #28427
26.0.50; revert-buffer and git vc-outgoing

Previous Next

Package: emacs;

Reported by: Tom Tromey <tom <at> tromey.com>

Date: Mon, 11 Sep 2017 22:26:01 UTC

Severity: minor

Found in version 26.0.50

Done: Tom Tromey <tom <at> tromey.com>

Bug is archived. No further changes may be made.

Full log


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

From: Tom Tromey <tom <at> tromey.com>
To: Tom Tromey <tom <at> tromey.com>
Cc: bug-gnu-emacs <at> gnu.org
Subject: Re: 26.0.50; revert-buffer and git vc-outgoing
Date: Mon, 11 Sep 2017 21:36:10 -0600
>>>>> "Tom" == Tom Tromey <tom <at> tromey.com> writes:

Tom> I have a local git branch.  I open vc-dir and use "O" to get the
Tom> outgoing revisions.

Tom> In *vc-outgoing*, if I type 'g' (revert-buffer), it doesn't first erase
Tom> the buffer, so all the outgoing revisions are repeated.

This patch seems to do it.
I changed vc-git-log-incoming as well since it looks like it should have
the same problem.

Tom

diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index cc3e295..47b661a 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -1029,6 +1030,7 @@ vc-git-print-log
 		'("--")))))))
 
 (defun vc-git-log-outgoing (buffer remote-location)
+  (vc-setup-buffer buffer)
   (interactive)
   (vc-git-command
    buffer 'async nil
@@ -1043,6 +1045,7 @@ vc-git-log-outgoing
 
 (defun vc-git-log-incoming (buffer remote-location)
   (interactive)
+  (vc-setup-buffer buffer)
   (vc-git-command nil 0 nil "fetch")
   (vc-git-command
    buffer 'async nil




This bug report was last modified 7 years and 333 days ago.

Previous Next


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