X-Loop: help-debbugs@HIDDEN Subject: bug#13405: 24.3; log-view-diff-changeset reports wrong results Resent-From: Andy Moreton <andrewjmoreton@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 10 Jan 2013 16:04:01 +0000 Resent-Message-ID: <handler.13405.B.135783380318290 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 13405 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13405 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.135783380318290 (code B ref -1); Thu, 10 Jan 2013 16:04:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Jan 2013 16:03:23 +0000 Received: from localhost ([127.0.0.1]:54354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1TtKbC-0004kw-6x for submit <at> debbugs.gnu.org; Thu, 10 Jan 2013 11:03:23 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59329) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <andrewjmoreton@HIDDEN>) id 1TtKbA-0004kf-7J for submit <at> debbugs.gnu.org; Thu, 10 Jan 2013 11:03:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <andrewjmoreton@HIDDEN>) id 1TtKb0-0000nh-BG for submit <at> debbugs.gnu.org; Thu, 10 Jan 2013 11:03:13 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:42140) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <andrewjmoreton@HIDDEN>) id 1TtKb0-0000nd-9H for submit <at> debbugs.gnu.org; Thu, 10 Jan 2013 11:03:10 -0500 Received: from eggs.gnu.org ([208.118.235.92]:42423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <andrewjmoreton@HIDDEN>) id 1TtKax-00010q-9j for bug-gnu-emacs@HIDDEN; Thu, 10 Jan 2013 11:03:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <andrewjmoreton@HIDDEN>) id 1TtKaq-0000kL-Oc for bug-gnu-emacs@HIDDEN; Thu, 10 Jan 2013 11:03:06 -0500 Received: from mail-wi0-f176.google.com ([209.85.212.176]:33161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <andrewjmoreton@HIDDEN>) id 1TtKaq-0000kF-Hz for bug-gnu-emacs@HIDDEN; Thu, 10 Jan 2013 11:03:00 -0500 Received: by mail-wi0-f176.google.com with SMTP id hm6so1339700wib.15 for <bug-gnu-emacs@HIDDEN>; Thu, 10 Jan 2013 08:02:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=deGhN1650aBwta2zPcb1VWq/s9lqY924/dZk60WJDqc=; b=ik+UQmmu8B3zH63kItJmgIvN3ADSldbTFX6N1yl8QuJO5yJMbs2d0c/tx1jhAVZERb iOqRdKIQjGlRm26Be7U2Adip6FKCUSv+JF2trTpN/MBiFYvVdzMkj03/dvOnUMz8CWdX wUDaUvXsmx7sTDy92aPhJaSjLI5xW/lz8SP0H1Gbi/BddicOr8hYZxmex/3i+29WSt2/ 6WBgfzvmF7jzTndhocmFCnckP0d5WN7xEQaoTAXTI8770B0EwvwX4UjTohvEh35olRaC glYYecj1DXSRb7WoejqU1OURuwRmK2EjLZvSYHHqyDOXcp4UXgizNx91Oy9cyePY0z2o HXbg== X-Received: by 10.180.19.99 with SMTP id d3mr10233089wie.4.1357833779106; Thu, 10 Jan 2013 08:02:59 -0800 (PST) Received: from [10.17.20.82] (uk.solarflare.com. [193.34.186.16]) by mx.google.com with ESMTPS id l5sm2929645wia.10.2013.01.10.08.02.57 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Jan 2013 08:02:57 -0800 (PST) Message-ID: <50EEE630.3000306@HIDDEN> Date: Thu, 10 Jan 2013 16:02:56 +0000 From: Andy Moreton <andrewjmoreton@HIDDEN> User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -4.2 (----) Emacs trunk built from r111470 on Windows XP (with mingw gcc 4.7.2). Using vc support in emacs with a mercurial (hg) repository: 1) Annotate a file under hg version control. 2) Type "l" (vc-annotate-show-log-revision-at-line) in the annotate buffer to show the *vc-change-log* buffer containing the log entry for revision 46769. 3) In the *vc-change-log* buffer, type D (log-view-diff-changeset) to view the changeset for that single revision. Emacs runs "hg diff --git -r 46768 -r 46769", but this does not show the expected contents of the changeset, as the previous revision was on a different named branch. Instead this shows the (large) diff between the two branches. The line counts illustrate this: # hg diff -r 46768 -r 46769 | wc -l ## Diff between branches 102276 # hg diff -c 46769 | wc -l ## Changeset diff 295 # hg log -p -r 46769 | wc -l ## Changeset diff + hg metadata 302 The second and third commands give the expected output. Can log-view-diff-changeset be changed to deal with this case more gracefully ? AndyM
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Andy Moreton <andrewjmoreton@HIDDEN> Subject: bug#13405: Acknowledgement (24.3; log-view-diff-changeset reports wrong results) Message-ID: <handler.13405.B.135783380318290.ack <at> debbugs.gnu.org> References: <50EEE630.3000306@HIDDEN> X-Gnu-PR-Message: ack 13405 X-Gnu-PR-Package: emacs Reply-To: 13405 <at> debbugs.gnu.org Date: Thu, 10 Jan 2013 16:04:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 13405 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 13405: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13405 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#13405: 24.3; log-view-diff-changeset reports wrong results Resent-From: Stefan Monnier <monnier@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 11 Jan 2013 23:14:02 +0000 Resent-Message-ID: <handler.13405.B13405.13579460244087 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 13405 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andy Moreton <andrewjmoreton@HIDDEN> Cc: 13405 <at> debbugs.gnu.org Received: via spool by 13405-submit <at> debbugs.gnu.org id=B13405.13579460244087 (code B ref 13405); Fri, 11 Jan 2013 23:14:02 +0000 Received: (at 13405) by debbugs.gnu.org; 11 Jan 2013 23:13:44 +0000 Received: from localhost ([127.0.0.1]:55881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1TtnnD-00013r-Gx for submit <at> debbugs.gnu.org; Fri, 11 Jan 2013 18:13:44 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:10252) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <monnier@HIDDEN>) id 1TtnnB-00013f-QA for 13405 <at> debbugs.gnu.org; Fri, 11 Jan 2013 18:13:42 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtkGAG6Zu09MCpYP/2dsb2JhbABEgXuyFoEIghUBAQQBViMFCwsOJhIUGA0kiBwFugmQRAOIQppxgViDBw X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="212336487" Received: from 76-10-150-15.dsl.teksavvy.com (HELO pastel.home) ([76.10.150.15]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 11 Jan 2013 18:13:27 -0500 Received: by pastel.home (Postfix, from userid 20848) id 9A9385943D; Fri, 11 Jan 2013 18:13:26 -0500 (EST) From: Stefan Monnier <monnier@HIDDEN> Message-ID: <jwv4nin2u3d.fsf-monnier+emacs@HIDDEN> References: <50EEE630.3000306@HIDDEN> Date: Fri, 11 Jan 2013 18:13:26 -0500 In-Reply-To: <50EEE630.3000306@HIDDEN> (Andy Moreton's message of "Thu, 10 Jan 2013 16:02:56 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.8 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: 0.8 (/) > 3) In the *vc-change-log* buffer, type D (log-view-diff-changeset) to view > the changeset for that single revision. > Emacs runs "hg diff --git -r 46768 -r 46769", but this does not show > the expected contents of the changeset, as the previous revision was > on a different named branch. Instead this shows the (large) diff between > the two branches. The line counts illustrate this: > # hg diff -r 46768 -r 46769 | wc -l ## Diff between branches > 102276 > # hg diff -c 46769 | wc -l ## Changeset diff > 295 > # hg log -p -r 46769 | wc -l ## Changeset diff + hg metadata > 302 > The second and third commands give the expected output. > Can log-view-diff-changeset be changed to deal with this case more > gracefully ? VC assumes you can get the changeset by running "hg diff -r <something> -r 46769". Is there a <something> that would give the right answer? Ideally this <something> should be computable from "46769". Stefan
X-Loop: help-debbugs@HIDDEN Subject: bug#13405: 24.3; log-view-diff-changeset reports wrong results Resent-From: Andy Moreton <andrewjmoreton@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 12 Jan 2013 14:23:02 +0000 Resent-Message-ID: <handler.13405.B13405.135800057929717 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 13405 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier <monnier@HIDDEN> Cc: 13405 <at> debbugs.gnu.org Received: via spool by 13405-submit <at> debbugs.gnu.org id=B13405.135800057929717 (code B ref 13405); Sat, 12 Jan 2013 14:23:02 +0000 Received: (at 13405) by debbugs.gnu.org; 12 Jan 2013 14:22:59 +0000 Received: from localhost ([127.0.0.1]:56460 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Tu1z8-0007jF-LF for submit <at> debbugs.gnu.org; Sat, 12 Jan 2013 09:22:59 -0500 Received: from mail-ea0-f169.google.com ([209.85.215.169]:57050) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <andrewjmoreton@HIDDEN>) id 1Tu1z5-0007j2-PO for 13405 <at> debbugs.gnu.org; Sat, 12 Jan 2013 09:22:56 -0500 Received: by mail-ea0-f169.google.com with SMTP id a12so1108140eaa.28 for <13405 <at> debbugs.gnu.org>; Sat, 12 Jan 2013 06:22:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=a9Jtaew7UeGoxejiXdyy15qgh4y2LbGnWZmtUCxJ0/0=; b=ec9JNlNhAM/5Nktrv/bqMM/QS1Xs8C35/cFz13s+oXsEWPVkoEZuQj91UYxMmGa3vd JPY6beeSSZCXPSNlvVASVOwLRFbrKHy00DR2ttkrk2kLCNbYSh1m9VYNuWXQLkcZSnYP myGsRQn+/btnVUZrSUsgEiw4X/oYut/JcsN0HhgsY+C4Fkl+qmSl8eve4xcfU9YBIGO7 TcoL5Vtz8+rCMUMCyG8dAC/GTMDZGfg7GV04OkclQSstNpFSLOc6JyaH3t1XEsA+FTK7 pZbMhxmpL8eI4qmwEl4IrYnyXSVqBMwx+ADqUv9NcF0urCOwic8oJW5pordqlO5mxXUE 48mw== X-Received: by 10.14.184.134 with SMTP id s6mr210235413eem.43.1358000557435; Sat, 12 Jan 2013 06:22:37 -0800 (PST) Received: from [192.168.0.3] (82-69-64-228.dsl.in-addr.zen.co.uk. [82.69.64.228]) by mx.google.com with ESMTPS id f6sm13037358eeo.7.2013.01.12.06.22.36 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 12 Jan 2013 06:22:36 -0800 (PST) Message-ID: <50F171A3.9050200@HIDDEN> Date: Sat, 12 Jan 2013 14:22:27 +0000 From: Andy Moreton <andrewjmoreton@HIDDEN> User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 References: <50EEE630.3000306@HIDDEN> <jwv4nin2u3d.fsf-monnier+emacs@HIDDEN> In-Reply-To: <jwv4nin2u3d.fsf-monnier+emacs@HIDDEN> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.1 (/) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -0.7 (/) On 11/01/2013 23:13, Stefan Monnier wrote: >> 3) In the *vc-change-log* buffer, type D (log-view-diff-changeset) to view >> the changeset for that single revision. >> Emacs runs "hg diff --git -r 46768 -r 46769", but this does not show >> the expected contents of the changeset, as the previous revision was >> on a different named branch. Instead this shows the (large) diff between >> the two branches. The line counts illustrate this: > >> # hg diff -r 46768 -r 46769 | wc -l ## Diff between branches >> 102276 >> # hg diff -c 46769 | wc -l ## Changeset diff >> 295 >> # hg log -p -r 46769 | wc -l ## Changeset diff + hg metadata >> 302 > >> The second and third commands give the expected output. >> Can log-view-diff-changeset be changed to deal with this case more >> gracefully ? > > VC assumes you can get the changeset by running > "hg diff -r <something> -r 46769". Is there a <something> that would > give the right answer? Ideally this <something> should be computable > from "46769". This can be done using revsets: # hg diff -r46769^1 -r 46769 | wc -l 295 However that relies on having a new enough version of mercurial that supports the revsets syntax. The "hg diff -c" or "hg log -p" commands work with older mercurial versions that do not support revset syntax. AndyM
Received: (at control) by debbugs.gnu.org; 13 Nov 2013 19:21:44 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 13 14:21:44 2013 Received: from localhost ([127.0.0.1]:50506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1Vgg0V-0006Zh-N3 for submit <at> debbugs.gnu.org; Wed, 13 Nov 2013 14:21:44 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:44576 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <rgm@HIDDEN>) id 1Vgg0T-0006ZZ-Oq for control <at> debbugs.gnu.org; Wed, 13 Nov 2013 14:21:42 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from <rgm@HIDDEN>) id 1Vgg0T-0005vG-CW for control <at> debbugs.gnu.org; Wed, 13 Nov 2013 14:21:41 -0500 Date: Wed, 13 Nov 2013 14:21:41 -0500 Message-Id: <E1Vgg0T-0005vG-CW@HIDDEN> Subject: control message for bug 15883 To: <control <at> debbugs.gnu.org> X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris <rgm@HIDDEN> X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.0 (-----) merge 13405 15883
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.