--- Begin Message ---
Subject: |
27.0.50; [PATCH] vc-hg: log incoming/outgoing must call vc-setup-buffer |
Date: |
Wed, 27 Nov 2019 09:04:19 +0200 |
1. emacs -Q
2. 'C-x v d' and open hg repository directory
3. 'I' to open incoming log
4. 'g' to revert *vc-incoming* buffer
Output is added to buffer content instead of replacing it.
Same with outgoing log.
vc-hg-log-incoming and vc-hg-log-outgoing must call vc-setup-buffer
* lisp/vc/vc-hg.el (vc-hg-log-incoming, vc-hg-log-outgoing): Call
vc-setup-buffer.
diff --git a/lisp/vc/vc-hg.el b/lisp/vc/vc-hg.el
index 17d38fa400..5ff1a6204b 100644
--- a/lisp/vc/vc-hg.el
+++ b/lisp/vc/vc-hg.el
@@ -1378,10 +1378,12 @@ vc-hg-dir-extra-headers
)))
(defun vc-hg-log-incoming (buffer remote-location)
+ (vc-setup-buffer buffer)
(vc-hg-command buffer 1 nil "incoming" "-n" (unless (string= remote-location
"")
remote-location)))
(defun vc-hg-log-outgoing (buffer remote-location)
+ (vc-setup-buffer buffer)
(vc-hg-command buffer 1 nil "outgoing" "-n" (unless (string= remote-location
"")
remote-location)))
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#38397: 27.0.50; [PATCH] vc-hg: log incoming/outgoing must call vc-setup-buffer |
Date: |
Wed, 27 Nov 2019 14:17:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 27.11.2019 9:04, Andrii Kolomoiets wrote:
1. emacs -Q
2. 'C-x v d' and open hg repository directory
3. 'I' to open incoming log
4. 'g' to revert *vc-incoming* buffer
Output is added to buffer content instead of replacing it.
Same with outgoing log.
vc-hg-log-incoming and vc-hg-log-outgoing must call vc-setup-buffer
* lisp/vc/vc-hg.el (vc-hg-log-incoming, vc-hg-log-outgoing): Call
vc-setup-buffer.
Thanks, installed (e7b4c248a6). But please send patches as attachments.
I had to make all the changes my hand this time.
Also see the changes in the commit message.
--- End Message ---