From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francesco Potorti` Newsgroups: gmane.emacs.bugs Subject: bug#1017: vc-diff for the hg backend ignore diff switches variables Date: Tue, 23 Sep 2008 16:57:24 +0200 Message-ID: Reply-To: Francesco Potorti` , 1017@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1222182617 15224 80.91.229.12 (23 Sep 2008 15:10:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Sep 2008 15:10:17 +0000 (UTC) To: GNU emacs bug list Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 23 17:11:12 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ki9Xi-0005ii-Vm for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Sep 2008 17:11:11 +0200 Original-Received: from localhost ([127.0.0.1]:60492 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ki9Wd-00051s-Q9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Sep 2008 11:10:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ki9Wa-00051i-ER for bug-gnu-emacs@gnu.org; Tue, 23 Sep 2008 11:10:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ki9WX-00051W-UL for bug-gnu-emacs@gnu.org; Tue, 23 Sep 2008 11:09:59 -0400 Original-Received: from [199.232.76.173] (port=40539 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ki9WX-00051S-P1 for bug-gnu-emacs@gnu.org; Tue, 23 Sep 2008 11:09:57 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59077) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ki9WX-0001u8-7N for bug-gnu-emacs@gnu.org; Tue, 23 Sep 2008 11:09:57 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8NF9rGh011583; Tue, 23 Sep 2008 08:09:53 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8NF56ug010545; Tue, 23 Sep 2008 08:05:06 -0700 X-Loop: don@donarmstrong.com Resent-From: Francesco Potorti` Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 23 Sep 2008 15:05:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1017 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12221818858462 (code B ref -1); Tue, 23 Sep 2008 15:05:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 23 Sep 2008 14:58:05 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8NEvwve008456 for ; Tue, 23 Sep 2008 07:58:00 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ki9Kw-0000By-BK for bug-gnu-emacs@gnu.org; Tue, 23 Sep 2008 10:57:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ki9Ku-0000Aj-DD for bug-gnu-emacs@gnu.org; Tue, 23 Sep 2008 10:57:57 -0400 Original-Received: from [199.232.76.173] (port=37227 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ki9Ku-0000Ae-72 for bug-gnu-emacs@gnu.org; Tue, 23 Sep 2008 10:57:56 -0400 Original-Received: from mx4.isti.cnr.it ([194.119.192.6]:63201 helo=ITANIUM.ISTI.CNR.IT) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ki9Kt-0006F9-Pr for bug-gnu-emacs@gnu.org; Tue, 23 Sep 2008 10:57:56 -0400 Original-Received: from conversionlocal.isti.cnr.it by mx.isti.cnr.it (PMDF V6.4-beta #31598) id <01MZWPGJ8N5C9S4ISQ@mx.isti.cnr.it> for bug-gnu-emacs@gnu.org; Tue, 23 Sep 2008 16:57:25 +0200 Original-Received: from tucano.isti.cnr.it (tucano.isti.cnr.it [146.48.81.102]) by mx.isti.cnr.it (PMDF V6.4-beta #31599) with ESMTPSA id <01MZWPGIVM629QUZA3@mx.isti.cnr.it> for bug-gnu-emacs@gnu.org; Tue, 23 Sep 2008 16:57:24 +0200 Original-Received: from pot by tucano.isti.cnr.it with local (Exim 4.69) (envelope-from ) id 1Ki9KO-0007wu-G8 for bug-gnu-emacs@gnu.org; Tue, 23 Sep 2008 16:57:24 +0200 X-INSM-ip-source: 146.48.81.102 Auth Done X-fingerprint: 4B02 6187 5C03 D6B1 2E31 7666 09DF 2DC9 BE21 6115 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 23 Sep 2008 11:09:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20713 Archived-At: Three related problems: 1) Apparently the hg backend of vc ignores both diff-switches and vc-diff-switches. 2) The vc-hg-diff-switches variables is not defined. 3) The hg backend is special with respect to the vc-diff-switches variable. Its doc says: A string or list of strings specifying switches for diff under VC. When running diff under a given BACKEND, VC concatenates the values of `diff-switches', `vc-diff-switches', and `vc-BACKEND-diff-switches' to get the switches for that command. Thus, `vc-diff-switches' should contain switches that are specific to version control, but not specific to any particular backend. This behaviour assumes that the diff switches can be accumulated. however, it does not allow for removing them for a particular backend. For example, I have (setq diff-switches "-pu" vc-diff-switches "-b") which works for the cvs and rcs backends. However, it would not work for the hg backend, as 'hg diff' does not tolerate the -u option. This problem would require a different way of combining the diff switches.