emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#38397: closed (27.0.50; [PATCH] vc-hg: log incoming/outgoing must ca


From: GNU bug Tracking System
Subject: bug#38397: closed (27.0.50; [PATCH] vc-hg: log incoming/outgoing must call vc-setup-buffer)
Date: Wed, 27 Nov 2019 12:18:01 +0000

Your message dated Wed, 27 Nov 2019 14:17:39 +0200
with message-id <address@hidden>
and subject line Re: bug#38397: 27.0.50; [PATCH] vc-hg: log incoming/outgoing 
must call vc-setup-buffer
has caused the debbugs.gnu.org bug report #38397,
regarding 27.0.50; [PATCH] vc-hg: log incoming/outgoing must call 
vc-setup-buffer
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
38397: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38397
GNU Bug Tracking System
Contact address@hidden with problems
--- 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 ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]