From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andrii Kolomoiets Newsgroups: gmane.emacs.bugs Subject: bug#38397: 27.0.50; [PATCH] vc-hg: log incoming/outgoing must call vc-setup-buffer Date: Wed, 27 Nov 2019 09:04:19 +0200 Message-ID: <0DD0E5AA-45E0-4932-99B4-67301F8407AD@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3601.0.10\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="155730"; mail-complaints-to="usenet@blaine.gmane.org" To: 38397@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 27 08:05:22 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iZrO3-000eML-JU for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Nov 2019 08:05:19 +0100 Original-Received: from localhost ([::1]:35296 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZrO1-00005Q-JT for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Nov 2019 02:05:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59126) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZrNp-0008QS-3V for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2019 02:05:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZrNm-0000xL-NK for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2019 02:05:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47400) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZrNm-0000x6-JZ for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2019 02:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iZrNm-0007iv-C9 for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2019 02:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrii Kolomoiets Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Nov 2019 07:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38397 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157483827029638 (code B ref -1); Wed, 27 Nov 2019 07:05:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Nov 2019 07:04:30 +0000 Original-Received: from localhost ([127.0.0.1]:53373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZrNF-0007hv-PA for submit@debbugs.gnu.org; Wed, 27 Nov 2019 02:04:30 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:59857) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZrND-0007ho-Kq for submit@debbugs.gnu.org; Wed, 27 Nov 2019 02:04:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59059) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZrNC-0008NM-KJ for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2019 02:04:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZrNB-0000cH-BX for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2019 02:04:26 -0500 Original-Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:39420) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZrNA-0000b1-JD for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2019 02:04:25 -0500 Original-Received: by mail-lj1-x233.google.com with SMTP id e10so13997386ljj.6 for ; Tue, 26 Nov 2019 23:04:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=uv9TMleok8sVhxZBJq7G29TsdgR1Ogiw4wA8JrsmIGk=; b=UAEmmxErafR5wWyGQbocEe25gBc+kHaDXdnQzu+zN741zlv0pVTvjWBTHEFZ0gG/VH CNwf0OW3PPjOpinAsrdxTBKOFA8w90OKutw1LxglBEIYT8CnixOoq8gU0V3/EzumdHHG anMtBgkmEeaTqeU1ri+io66hq3co8xBc9u9Dm2JGms1aE64r2Zr5oxusL1ozefi+7uCR 4HyeVp5ccXOWN0evPbs94KwExroDt7Rz6wtKZjpNj1B0Oh/lIhlOnZ1MBRANnUDRA4PP AWRQyR08zara7weJA2ZPNIWiC+MzWYb8WjyR9xVZGmbt/KOdSm5u2EZtSfrW9pIjB36m YWpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=uv9TMleok8sVhxZBJq7G29TsdgR1Ogiw4wA8JrsmIGk=; b=ESDvipOiBcV0qMNTPjnOnS4qKYPPHpQ6+lLRqduqcXDU6sEStwPI5yEYR4VIWxyC2w 7k2qeJPqG2QzMCILlHRF87Xzv9UNrjOAA2q7dKoc4Pg7UPx3ETZ+2kJi3DTn10v0RJjd MwVdd94p6JPmMaSIEQaJRCVHXFRDcKkI5uxet6eLT+kbtcGj6qhMdixqyilEQRiMYE71 mTfsWBEfhkHPFu9ctZgCq8gCQqj1HrgifvZ5QkePN2ZrdkcDAJqrw4wJTj0RIh/97OxK t+RgiVFb9LOyBYw6CUkQDjKvFe5dWOnvXX3Q9fkCXn1zicJv/miSrsLAm/NOzHMUEIqT GMgw== X-Gm-Message-State: APjAAAUF9fSFvVLeiqYlzTXYet/hSotcrDJQEPjoadyK9eVKLmQFo3Kc aYckxWYydA4QMwEvauZezS5FEGWDjKY= X-Google-Smtp-Source: APXvYqxHtuSdtFls/NQ0TWBl3nLuoW/dehJQIvMZSPxVYVgUEOZCkE1XwHvZ6dymL3x7nKls5KaKRw== X-Received: by 2002:a2e:b537:: with SMTP id z23mr29781451ljm.129.1574838261121; Tue, 26 Nov 2019 23:04:21 -0800 (PST) Original-Received: from [10.1.1.147] (188-42-207-82.ip.ukrtel.net. [82.207.42.188]) by smtp.gmail.com with ESMTPSA id v5sm1569187ljk.67.2019.11.26.23.04.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Nov 2019 23:04:20 -0800 (PST) X-Mailer: Apple Mail (2.3601.0.10) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172513 Archived-At: 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=3D = 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=3D = remote-location "") remote-location)))=