GNU bug report logs - #13004
24.2; vc-diff from vc-log doesn't show diff before renames (for Mercurial backend).

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Oleksandr Gavenko <gavenkoa@HIDDEN>; dated Mon, 26 Nov 2012 18:32:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'minor' from 'normal' Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 13004 <at> debbugs.gnu.org:


Received: (at 13004) by debbugs.gnu.org; 28 Nov 2012 20:31:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 28 15:31:13 2012
Received: from localhost ([127.0.0.1]:44072 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TdoHo-0007Pp-PM
	for submit <at> debbugs.gnu.org; Wed, 28 Nov 2012 15:31:13 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:45962)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1TdoHn-0007Pj-M6
	for 13004 <at> debbugs.gnu.org; Wed, 28 Nov 2012 15:31:12 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1TdoFv-0007Dg-0m; Wed, 28 Nov 2012 15:29:15 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Oleksandr Gavenko <gavenkoa@HIDDEN>
Subject: Re: bug#13004: 24.2;
	vc-diff from vc-log doesn't show diff before renames (for Mercurial
	backend).
References: <87txsa92ve.fsf@HIDDEN>
X-Spook: digicash top secret Iran Marxist weapons of mass
X-Ran: m^FYYpHt0J6iWKPx:iGaZ}au7!O;cd)S7$b^9AQlX5W05ORaAGJAb]y{8[`+`4\|Z#Jg'A
X-Hue: white
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Wed, 28 Nov 2012 15:29:14 -0500
In-Reply-To: <87txsa92ve.fsf@HIDDEN> (Oleksandr Gavenko's
	message of "Tue, 27 Nov 2012 23:01:41 +0200")
Message-ID: <7e38zt5v51.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.6 (----)
X-Debbugs-Envelope-To: 13004
Cc: 13004 <at> debbugs.gnu.org
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: -5.4 (-----)

Oleksandr Gavenko wrote:

> Additional info.

(Seems more like a different bug report to me.)

> Next go to previous version by "a" (vc-annotate-revision-previous-to-line) on
> second line:
>
>   0 Tue Nov 27 21:12:00 2012 +0200  README: xxx
>   1 Tue Nov 27 21:12:23 2012 +0200  README: yyy          (*1*)
>   3 Tue Nov 27 21:13:15 2012 +0200 INSTALL: zzz
>
> So you move to:
>
>   0 Tue Nov 27 21:12:00 2012 +0200 README: xxx           (*2*)

Emacs is now looking at revision 0 of file "README".

> If you try move forward by "w" (vc-annotate-working-revision) Emacs print
> error:
>
>   vc-annotate-warp-revision: Invalid argument to vc-annotate-warp-revision

Ie, you try to jump to the working revision of file "README".
But file README has no working revision, hence the error.

I have no idea what, if anything, to do about that.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13004; Package emacs. Full text available.

Message received at 13004 <at> debbugs.gnu.org:


Received: (at 13004) by debbugs.gnu.org; 28 Nov 2012 20:28:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 28 15:28:35 2012
Received: from localhost ([127.0.0.1]:44068 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TdoFF-0007LI-C2
	for submit <at> debbugs.gnu.org; Wed, 28 Nov 2012 15:28:35 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:45930)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1TdoFD-0007LA-1c
	for 13004 <at> debbugs.gnu.org; Wed, 28 Nov 2012 15:28:32 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1TdoDJ-0006Kd-SZ; Wed, 28 Nov 2012 15:26:33 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Oleksandr Gavenko <gavenkoa@HIDDEN>
Subject: Re: bug#13004: 24.2;
	vc-diff from vc-log doesn't show diff before renames (for Mercurial
	backend).
References: <87boekdxqj.fsf@HIDDEN>
	<19fw3w597r.fsf@HIDDEN> <ysboek592r.fsf@HIDDEN>
	<cd4nkc58ud.fsf@HIDDEN> <myzk243u5m.fsf@HIDDEN>
	<87haoau9qp.fsf@HIDDEN>
	<xa7gp6vmd0.fsf@HIDDEN>
	<87wqx693bt.fsf@HIDDEN>
X-Spook: rail gun rs9512c kilderkin JSOFC3IP Delta Force secure
X-Ran: "n/^IG24-|y15]>%`y"gxLQQ7]>EjxmIp>|=5$IE$oqt:fkVTOyIVu"_?Hfn,)eTRkp[aG
X-Hue: red
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Wed, 28 Nov 2012 15:26:33 -0500
In-Reply-To: <87wqx693bt.fsf@HIDDEN> (Oleksandr Gavenko's
	message of "Tue, 27 Nov 2012 22:51:50 +0200")
Message-ID: <xz7gp55v9i.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.6 (----)
X-Debbugs-Envelope-To: 13004
Cc: 13004 <at> debbugs.gnu.org
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.6 (----)

Oleksandr Gavenko wrote:

> **PS** Why Emacs uses -r R1 -r R2 for HG? "-c" - do job more better as it
>        actually compares to its first parent.

Because the Emacs command is a specific instance of the general question
"find the difference between revisions R1 and R2". Naively, I expect
these two to be exactly equivalent when R2 = R1 + 1. `bzr help diff'
says they are, I didn't check.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13004; Package emacs. Full text available.

Message received at 13004 <at> debbugs.gnu.org:


Received: (at 13004) by debbugs.gnu.org; 27 Nov 2012 21:03:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 27 16:03:38 2012
Received: from localhost ([127.0.0.1]:42174 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TdSJd-0006bW-QB
	for submit <at> debbugs.gnu.org; Tue, 27 Nov 2012 16:03:38 -0500
Received: from mail-ee0-f44.google.com ([74.125.83.44]:53357)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <gavenkoa@HIDDEN>) id 1TdSJb-0006bK-8T
	for 13004 <at> debbugs.gnu.org; Tue, 27 Nov 2012 16:03:36 -0500
Received: by mail-ee0-f44.google.com with SMTP id b47so7891987eek.3
	for <13004 <at> debbugs.gnu.org>; Tue, 27 Nov 2012 13:01:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:to:cc:subject:organization:date:message-id:mime-version
	:content-type; bh=wS27UXG3pvzX52OorsCbU/ylsyQfyF6l36D9+aekDSQ=;
	b=JEL7vy+PA98VyDzf829Rc46674ztbyEyKuhlrfVAJweY11UU75ANpI7tSDN2Zz/OTk
	GBE/8/UIpoB3/83GTCKHxUCnl268I1POBToR154GIO95mjxsYCyKm4CWh+j9bu7FlI1B
	wmZ2jRSLuD4BUN4mvIJRh2xfIgyLuo7SczWqM+/tawYMxBPMN/BQW/Yj09Fq72/hcEya
	QzhPfvILhbHn3Hfwupi1q2mcQYuHbKoNGYriO0/AOmipn1/GTw5V5mzzZsGyI8RAv3AK
	1Y8lcL317hXQP4uwsQ1j381vCpQ7rud/eIRPK8WKselcPrs8GjXKmKcqmsvjAx79R8X4
	tNew==
Received: by 10.14.213.7 with SMTP id z7mr61286643eeo.39.1354050104218;
	Tue, 27 Nov 2012 13:01:44 -0800 (PST)
Received: from desktop ([37.229.16.202])
	by mx.google.com with ESMTPS id a44sm42982577eeo.7.2012.11.27.13.01.42
	(version=SSLv3 cipher=OTHER); Tue, 27 Nov 2012 13:01:43 -0800 (PST)
From: Oleksandr Gavenko <gavenkoa@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#13004: 24.2;
	vc-diff from vc-log doesn't show diff before renames (for Mercurial
	backend).
Organization: Oleksandr Gavenko <gavenkoa@HIDDEN>,
	http://gavenkoa.users.sf.net
Date: Tue, 27 Nov 2012 23:01:41 +0200
Message-ID: <87txsa92ve.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: 13004
Cc: 13004 <at> debbugs.gnu.org
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.1 (/)

Additional info.

As we get know that HG doesn't allow follow history for HG another Emacs vc
module work as not expected.

So make test repo:

  mkdir /tmp/test
  cd /tmp/test
  hg init
  echo xxx >>README
  hg add
  hg ci -m init
  echo yyy >>README
  hg ci -m before
  hg mv README INSTALL
  hg ci -m rename
  echo zzz >>INSTALL
  hg ci -m after

open INSTALL file and annotate content (C-x v g runs the command vc-annotate).
Next go to previous version by "a" (vc-annotate-revision-previous-to-line) on
second line:

  0 Tue Nov 27 21:12:00 2012 +0200  README: xxx
  1 Tue Nov 27 21:12:23 2012 +0200  README: yyy          (*1*)
  3 Tue Nov 27 21:13:15 2012 +0200 INSTALL: zzz

So you move to:

  0 Tue Nov 27 21:12:00 2012 +0200 README: xxx           (*2*)

If you try move forward by "w" (vc-annotate-working-revision) Emacs print
error:

  vc-annotate-warp-revision: Invalid argument to vc-annotate-warp-revision

While in case of SVN we back to original state (*1*).

-- 
Best regards!




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13004; Package emacs. Full text available.

Message received at 13004 <at> debbugs.gnu.org:


Received: (at 13004) by debbugs.gnu.org; 27 Nov 2012 20:53:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 27 15:53:50 2012
Received: from localhost ([127.0.0.1]:42169 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TdSA9-0006NU-6W
	for submit <at> debbugs.gnu.org; Tue, 27 Nov 2012 15:53:49 -0500
Received: from mail-ee0-f44.google.com ([74.125.83.44]:49780)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <gavenkoa@HIDDEN>) id 1TdSA5-0006NM-TR
	for 13004 <at> debbugs.gnu.org; Tue, 27 Nov 2012 15:53:47 -0500
Received: by mail-ee0-f44.google.com with SMTP id b47so7885845eek.3
	for <13004 <at> debbugs.gnu.org>; Tue, 27 Nov 2012 12:51:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:to:cc:subject:organization:references:date:in-reply-to
	:message-id:user-agent:mime-version:content-type;
	bh=1ZXUXgrybmnD5Y8AOUyktBHeec0vvGeFXUVuX+p06xs=;
	b=BYdfFgGst7AdegLXG+6sSt1vmkSrOx/G4cJ7zh+ta4CN9wuKmuOfz/l54ayFKrPoiB
	BJ2LC09FRx0p1le1rqhbwtWi4Sizm+TN13H7wuRVWuWxU5EukbUTuP3pQFShUOU6QeGo
	g3VRH8m65RuywMC4QRyQKZM3hLhegeUxw9iz53vpfofycK/UI+kDG2i4RXUkjHAbEjtj
	Syo17fOKHxSF5dMPyY3qjCdTkyW8up5U7vi84SkwTI3gnEZ1I2knFkw8N4UJfDZhBLHG
	PVY1qmF4r5tGHxE7Se1WbYzcxLxEWmmcC4KgNUqp1S5c4CBIsNbq36j11XX2rFmaPIiu
	Xgpw==
Received: by 10.14.174.194 with SMTP id x42mr62328094eel.22.1354049514660;
	Tue, 27 Nov 2012 12:51:54 -0800 (PST)
Received: from desktop ([37.229.16.202])
	by mx.google.com with ESMTPS id q44sm4626120eep.5.2012.11.27.12.51.51
	(version=SSLv3 cipher=OTHER); Tue, 27 Nov 2012 12:51:53 -0800 (PST)
From: Oleksandr Gavenko <gavenkoa@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#13004: 24.2;
	vc-diff from vc-log doesn't show diff before renames (for Mercurial
	backend).
Organization: Oleksandr Gavenko <gavenkoa@HIDDEN>,
	http://gavenkoa.users.sf.net
References: <87boekdxqj.fsf@HIDDEN>
	<19fw3w597r.fsf@HIDDEN> <ysboek592r.fsf@HIDDEN>
	<cd4nkc58ud.fsf@HIDDEN> <myzk243u5m.fsf@HIDDEN>
	<87haoau9qp.fsf@HIDDEN>
	<xa7gp6vmd0.fsf@HIDDEN>
Date: Tue, 27 Nov 2012 22:51:50 +0200
In-Reply-To: <xa7gp6vmd0.fsf@HIDDEN> (Glenn Morris's message of
	"Tue, 27 Nov 2012 15:09:47 -0500")
Message-ID: <87wqx693bt.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: 13004
Cc: 13004 <at> debbugs.gnu.org
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: -2.6 (--)

On 2012-11-27, Glenn Morris wrote:

> Oleksandr Gavenko wrote:
>
>>   md /tmp/test
>>   hg init
>>   echo xxx >>README
>>   hg add
>>   hg ci -m init
>>   echo yyy >>README
>>   hg ci -m before
>>   hg mv README INSTALL
>>   hg ci -m rename
>>   echo zzz >>INSTALL
>>   hg ci -m after
>
> Perfect, thanks. (Assuming md == mkdir && cd)
>
>> Open INSTALL file in Emacs. "C-x v l" ("vc-print-log"). You get (I drop some
>> output):
>
> I had to add -f to vc-hg-log-switches. I'm guessing you have it in .hgrc
> maybe.
>
Yes.

>> In changeset 2 "d" (log-view-diff) fine:
>>
>>   diff --git a/README b/INSTALL
>>   copy from README
>>   copy to INSTALL
>
> I had to add --git to vc-hg-diff-switches.
>
>> In changeset 1 "d" (log-view-diff) fail: empty *vc-diff* buffer and message:
>>
>>   Finding changes in /tmp/test/INSTALL...
>>   No changes between 0 and 1
> [...]
>>   $ hg diff -r 1 -r 2 INSTALL
>>   diff --git a/README b/INSTALL
>>   copy from README
>>   copy to INSTALL
>
> Obviously to compare with what you are asking Emacs to do, you need to run:
>
> hg diff -r 0 -r 1 INSTALL
>
> This prints nothing for me.
>
> So I don't see any Emacs issue here.

Sorry. My fail. I understand that...

I put proxy utility to logging Emacs calls to 'hg':

  #!/bin/sh
  echo "$@" >>~/tmp/hg.log
  /usr/bin/hg "$@"

so seen:

  "diff" "-r" "0" "-r" "1" "INSTALL"

Next I reread "hg help diff". Previously I make call:

  $ hg diff -r 1 INSTALL

but actually mean with "-c":

  $ hg diff -c 1 INSTALL

But that command print nothing... So you right that I misunderstand.

I surprised that Mercurial doesn't allow follow history per file. Actually it
handle renames as special case for merges.

In case of SVN - Emacs work as I expect (more precisely I hoped that HG work
as SVN):

  mkdir /tmp/test-svn
  cd /tmp/test-svn
  svnadmin create server-repo
  svn co file:///tmp/test-svn/server-repo/ local-repo
  cd local-repo
  echo xxx >>README
  svn add README
  svn ci -m init
  echo yyy >>README
  svn ci -m before1
  echo mmm >>README
  svn ci -m before2
  svn mv README INSTALL
  svn ci -m rename
  echo zzz >>INSTALL
  svn ci -m after

So for revision r3 "before2" I get diff:

  Index: README
  ===================================================================
  --- README	(revision 2)
  +++ README	(revision 3)
  @@ -1,2 +1,3 @@
   xxx
   yyy
  +mmm

  "svn"  "diff" "-r" "2:3" "INSTALL"

So for revision r2 "before1" I get diff:

  Index: README
  ===================================================================
  --- README	(revision 1)
  +++ README	(revision 2)
  @@ -1 +1,2 @@
   xxx
  +yyy

  svn "diff" "-r" "1:2" "INSTALL"


**PS** Why Emacs uses -r R1 -r R2 for HG? "-c" - do job more better as it
       actually compares to its first parent.

-- 
Best regards!




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13004; Package emacs. Full text available.

Message received at 13004 <at> debbugs.gnu.org:


Received: (at 13004) by debbugs.gnu.org; 27 Nov 2012 20:11:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 27 15:11:41 2012
Received: from localhost ([127.0.0.1]:42159 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TdRVM-0005Qq-Qt
	for submit <at> debbugs.gnu.org; Tue, 27 Nov 2012 15:11:41 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:40169)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1TdRVK-0005Qj-D7
	for 13004 <at> debbugs.gnu.org; Tue, 27 Nov 2012 15:11:39 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1TdRTX-0004xz-Ew; Tue, 27 Nov 2012 15:09:47 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Oleksandr Gavenko <gavenkoa@HIDDEN>
Subject: Re: bug#13004: 24.2;
	vc-diff from vc-log doesn't show diff before renames (for Mercurial
	backend).
References: <87boekdxqj.fsf@HIDDEN>
	<19fw3w597r.fsf@HIDDEN> <ysboek592r.fsf@HIDDEN>
	<cd4nkc58ud.fsf@HIDDEN> <myzk243u5m.fsf@HIDDEN>
	<87haoau9qp.fsf@HIDDEN>
X-Spook: satellite imagery Yukon e-bomb LLNL offensive information
X-Ran: wg~:E\w/!^k902YKbaS/4fQx~=h9h3+upOS>ItyMEdA'IMvBz.P7PtxE.L)Xk'JL;r'd6"
X-Hue: yellow
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Tue, 27 Nov 2012 15:09:47 -0500
In-Reply-To: <87haoau9qp.fsf@HIDDEN> (Oleksandr Gavenko's
	message of "Tue, 27 Nov 2012 21:27:42 +0200")
Message-ID: <xa7gp6vmd0.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.6 (----)
X-Debbugs-Envelope-To: 13004
Cc: 13004 <at> debbugs.gnu.org
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.6 (----)

Oleksandr Gavenko wrote:

>   md /tmp/test
>   hg init
>   echo xxx >>README
>   hg add
>   hg ci -m init
>   echo yyy >>README
>   hg ci -m before
>   hg mv README INSTALL
>   hg ci -m rename
>   echo zzz >>INSTALL
>   hg ci -m after

Perfect, thanks. (Assuming md == mkdir && cd)

> Open INSTALL file in Emacs. "C-x v l" ("vc-print-log"). You get (I drop some
> output):

I had to add -f to vc-hg-log-switches. I'm guessing you have it in .hgrc
maybe.

> In changeset 2 "d" (log-view-diff) fine:
>
>   diff --git a/README b/INSTALL
>   copy from README
>   copy to INSTALL

I had to add --git to vc-hg-diff-switches.

> In changeset 1 "d" (log-view-diff) fail: empty *vc-diff* buffer and message:
>
>   Finding changes in /tmp/test/INSTALL...
>   No changes between 0 and 1
[...]
>   $ hg diff -r 1 -r 2 INSTALL
>   diff --git a/README b/INSTALL
>   copy from README
>   copy to INSTALL

Obviously to compare with what you are asking Emacs to do, you need to run:

hg diff -r 0 -r 1 INSTALL

This prints nothing for me.

So I don't see any Emacs issue here.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13004; Package emacs. Full text available.

Message received at 13004 <at> debbugs.gnu.org:


Received: (at 13004) by debbugs.gnu.org; 27 Nov 2012 19:29:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 27 14:29:41 2012
Received: from localhost ([127.0.0.1]:42111 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TdQqi-0004Ql-UP
	for submit <at> debbugs.gnu.org; Tue, 27 Nov 2012 14:29:41 -0500
Received: from mail-ee0-f44.google.com ([74.125.83.44]:51342)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <gavenkoa@HIDDEN>) id 1TdQqe-0004Qb-Cr
	for 13004 <at> debbugs.gnu.org; Tue, 27 Nov 2012 14:29:39 -0500
Received: by mail-ee0-f44.google.com with SMTP id b47so7837121eek.3
	for <13004 <at> debbugs.gnu.org>; Tue, 27 Nov 2012 11:27:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:to:cc:subject:organization:references:date:in-reply-to
	:message-id:user-agent:mime-version:content-type;
	bh=llc9843okgAq4osZP3dje33+nVzdMRUZdMMbChUIo48=;
	b=GWTfflH5jDFTOIhGoSSEi7WYQfb+irbmNAS+HXphcp21q0TyErBCAZuR+8Lyi2oJHM
	dls0Rua9eRyK8FxU/r7sNLqyaiJWfvgoMJEBWOto61o/9yI5XOGwWB7RXX0RLJvUy5iM
	9awiv/zvr6Odbrb5ymKworhL2bOshtA+WTbz/cM9/u2Etf8VkbF8ydktS168Nn64QM7N
	Z1LuJCnFaHruPZ/wWmsMoyOK5HIPY9DLCOMUBv/UNqRw9kEa/o4KKajmoIt1CMxg9a3f
	qHqSnggTLx3rRYMDbssaq/SIgktTke6QZ72IJKZSVCZ52tYrCxuJaUXjd8kHUkTpxz+R
	rpRw==
Received: by 10.14.223.200 with SMTP id v48mr61434635eep.24.1354044465843;
	Tue, 27 Nov 2012 11:27:45 -0800 (PST)
Received: from desktop ([37.229.16.202])
	by mx.google.com with ESMTPS id e2sm42488943eeo.8.2012.11.27.11.27.43
	(version=SSLv3 cipher=OTHER); Tue, 27 Nov 2012 11:27:44 -0800 (PST)
From: Oleksandr Gavenko <gavenkoa@HIDDEN>
To: Glenn Morris <rgm@HIDDEN>
Subject: Re: bug#13004: 24.2;
	vc-diff from vc-log doesn't show diff before renames (for Mercurial
	backend).
Organization: Oleksandr Gavenko <gavenkoa@HIDDEN>,
	http://gavenkoa.users.sf.net
References: <87boekdxqj.fsf@HIDDEN>
	<19fw3w597r.fsf@HIDDEN> <ysboek592r.fsf@HIDDEN>
	<cd4nkc58ud.fsf@HIDDEN> <myzk243u5m.fsf@HIDDEN>
Date: Tue, 27 Nov 2012 21:27:42 +0200
In-Reply-To: <myzk243u5m.fsf@HIDDEN> (Glenn Morris's message of
	"Mon, 26 Nov 2012 16:56:37 -0500")
Message-ID: <87haoau9qp.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: 13004
Cc: 13004 <at> debbugs.gnu.org
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 2012-11-26, Glenn Morris wrote:

> A minimal test case starting from scratch would be helpful.
>
> mkdir /tmp/test
> cd /tmp/test
> touch 1
> hg init
> hg add
> hg commit -m "commit 1"
>

  md /tmp/test
  hg init
  echo xxx >>README
  hg add
  hg ci -m init
  echo yyy >>README
  hg ci -m before
  hg mv README INSTALL
  hg ci -m rename
  echo zzz >>INSTALL
  hg ci -m after

Open INSTALL file in Emacs. "C-x v l" ("vc-print-log"). You get (I drop some
output):

  changeset:   3:00cf2a4ab691
  tag:         tip
  files:       INSTALL
  description:
  after

  changeset:   2:c6a81dfaea75
  files:       INSTALL README
  description:
  rename

  changeset:   1:9457c3fba41e
  files:       README
  description:
  before

  changeset:   0:ae606f956f03
  files:       README
  description:
  init

In changeset 3 "d" (log-view-diff) fine:

  diff --git a/INSTALL b/INSTALL
  --- a/INSTALL
  +++ b/INSTALL
  @@ -1,2 +1,3 @@
   xxx
   yyy
  +zzz

In changeset 2 "d" (log-view-diff) fine:

  diff --git a/README b/INSTALL
  copy from README
  copy to INSTALL

In changeset 1 "d" (log-view-diff) fail: empty *vc-diff* buffer and message:

  Finding changes in /tmp/test/INSTALL...
  No changes between 0 and 1

While I run in pure shell:

  $ hg diff -r 1 INSTALL
  diff --git a/README b/INSTALL
  rename from README
  rename to INSTALL
  --- a/README
  +++ b/INSTALL
  @@ -1,2 +1,3 @@
   xxx
   yyy
  +zzz

Also you ask to call:

  $ hg diff -r 1 -r 2 INSTALL
  diff --git a/README b/INSTALL
  copy from README
  copy to INSTALL

-- 
Best regards!




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13004; Package emacs. Full text available.

Message received at 13004 <at> debbugs.gnu.org:


Received: (at 13004) by debbugs.gnu.org; 26 Nov 2012 21:58:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 26 16:58:26 2012
Received: from localhost ([127.0.0.1]:40626 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Td6h8-0008I0-Da
	for submit <at> debbugs.gnu.org; Mon, 26 Nov 2012 16:58:26 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:47174)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1Td6h5-0008Hs-Js
	for 13004 <at> debbugs.gnu.org; Mon, 26 Nov 2012 16:58:24 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1Td6fO-0006n1-12; Mon, 26 Nov 2012 16:56:38 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Oleksandr Gavenko <gavenkoa@HIDDEN>
Subject: Re: bug#13004: 24.2;
	vc-diff from vc-log doesn't show diff before renames (for Mercurial
	backend).
References: <87boekdxqj.fsf@HIDDEN>
	<19fw3w597r.fsf@HIDDEN> <ysboek592r.fsf@HIDDEN>
	<cd4nkc58ud.fsf@HIDDEN>
X-Spook: Lexis-Nexis defense information warfare keyhole Nazi
X-Ran: ZVWd=,v@ZQ`NhU];<nB399aybsfU$w/y$>=&nfwm.~$E`hO:Ly)@>IiqylF&NtQQfgKg0!
X-Hue: yellow
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Mon, 26 Nov 2012 16:56:37 -0500
In-Reply-To: <cd4nkc58ud.fsf@HIDDEN> (Glenn Morris's message of
	"Mon, 26 Nov 2012 16:54:02 -0500")
Message-ID: <myzk243u5m.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.6 (----)
X-Debbugs-Envelope-To: 13004
Cc: 13004 <at> debbugs.gnu.org
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: -5.4 (-----)


A minimal test case starting from scratch would be helpful.

mkdir /tmp/test
cd /tmp/test
touch 1
hg init
hg add
hg commit -m "commit 1"

etc




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13004; Package emacs. Full text available.

Message received at 13004 <at> debbugs.gnu.org:


Received: (at 13004) by debbugs.gnu.org; 26 Nov 2012 21:55:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 26 16:55:50 2012
Received: from localhost ([127.0.0.1]:40621 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Td6ec-0008E3-0P
	for submit <at> debbugs.gnu.org; Mon, 26 Nov 2012 16:55:50 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:47116)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1Td6eZ-0008Du-Ua
	for 13004 <at> debbugs.gnu.org; Mon, 26 Nov 2012 16:55:48 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1Td6cs-0005OB-DI; Mon, 26 Nov 2012 16:54:02 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Oleksandr Gavenko <gavenkoa@HIDDEN>
Subject: Re: bug#13004: 24.2;
	vc-diff from vc-log doesn't show diff before renames (for Mercurial
	backend).
References: <87boekdxqj.fsf@HIDDEN>
	<19fw3w597r.fsf@HIDDEN> <ysboek592r.fsf@HIDDEN>
X-Spook: Ft. Bragg Albania threat world domination Europol FSF
X-Ran: E)fQ9sS~Ll|4'R@/ANmgwh?m3S/}>#@CIhp?.5o8]4R$cN8ebw!>?[U4_"[$+CC$WZ3eLb
X-Hue: green
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Mon, 26 Nov 2012 16:54:02 -0500
In-Reply-To: <ysboek592r.fsf@HIDDEN> (Glenn Morris's message of
	"Mon, 26 Nov 2012 16:49:00 -0500")
Message-ID: <cd4nkc58ud.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.6 (----)
X-Debbugs-Envelope-To: 13004
Cc: 13004 <at> debbugs.gnu.org
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.6 (----)

Glenn Morris wrote:

> Sorry, I didn't read properly. You were talking about calling "diff"
> from a log buffer. I still think using log -f may help, since otherwise
> it presumably looks like there is nothing to take a diff of. Does it
> help?

Answering my own question, no.
But what does

hg diff -r 214 -r 215 en-pronunciation_ru.rst

report for you?

For me, an equivalent diff command does not report any differences.
So this looks like an hg issue, not an Emacs one.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13004; Package emacs. Full text available.

Message received at 13004 <at> debbugs.gnu.org:


Received: (at 13004) by debbugs.gnu.org; 26 Nov 2012 21:50:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 26 16:50:49 2012
Received: from localhost ([127.0.0.1]:40615 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Td6Zl-00086q-6K
	for submit <at> debbugs.gnu.org; Mon, 26 Nov 2012 16:50:49 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:47042)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1Td6Zi-00086j-UZ
	for 13004 <at> debbugs.gnu.org; Mon, 26 Nov 2012 16:50:47 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1Td6Y1-0003tk-5Y; Mon, 26 Nov 2012 16:49:01 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Oleksandr Gavenko <gavenkoa@HIDDEN>
Subject: Re: bug#13004: 24.2;
	vc-diff from vc-log doesn't show diff before renames (for Mercurial
	backend).
References: <87boekdxqj.fsf@HIDDEN>
	<19fw3w597r.fsf@HIDDEN>
X-Spook: fundamentalist Attorney General Islam Abduganievich
X-Ran: 4)Erz">\"0ZTMPyTV(Cc:=XGakD}5;y>NMA1t4G)3E5IrZT>?s{;S@*$>tj|#KPYTOSC9"
X-Hue: white
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Mon, 26 Nov 2012 16:49:00 -0500
In-Reply-To: <19fw3w597r.fsf@HIDDEN> (Glenn Morris's message of
	"Mon, 26 Nov 2012 16:46:00 -0500")
Message-ID: <ysboek592r.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.6 (----)
X-Debbugs-Envelope-To: 13004
Cc: 13004 <at> debbugs.gnu.org
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.6 (----)


Sorry, I didn't read properly. You were talking about calling "diff"
from a log buffer. I still think using log -f may help, since otherwise
it presumably looks like there is nothing to take a diff of. Does it
help?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13004; Package emacs. Full text available.

Message received at 13004 <at> debbugs.gnu.org:


Received: (at 13004) by debbugs.gnu.org; 26 Nov 2012 21:47:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 26 16:47:48 2012
Received: from localhost ([127.0.0.1]:40610 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Td6Wq-00082L-Px
	for submit <at> debbugs.gnu.org; Mon, 26 Nov 2012 16:47:48 -0500
Received: from fencepost.gnu.org ([208.118.235.10]:46997)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1Td6Wp-00082C-H9
	for 13004 <at> debbugs.gnu.org; Mon, 26 Nov 2012 16:47:48 -0500
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1Td6V6-0001ea-NW; Mon, 26 Nov 2012 16:46:00 -0500
From: Glenn Morris <rgm@HIDDEN>
To: Oleksandr Gavenko <gavenkoa@HIDDEN>
Subject: Re: bug#13004: 24.2;
	vc-diff from vc-log doesn't show diff before renames (for Mercurial
	backend).
References: <87boekdxqj.fsf@HIDDEN>
X-Spook: Marxist Rule Psix CISU Hugo Chavez global Ft. Meade
X-Ran: _aTROg1A\fU@$]yH5^F^q=3Z76w6/|wbOvRj|Hf!Ejl:t%[z*!J!rXMXo1EX`(FHv,4hVb
X-Hue: yellow
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Mon, 26 Nov 2012 16:46:00 -0500
In-Reply-To: <87boekdxqj.fsf@HIDDEN> (Oleksandr Gavenko's
	message of "Mon, 26 Nov 2012 20:29:08 +0200")
Message-ID: <19fw3w597r.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.6 (----)
X-Debbugs-Envelope-To: 13004
Cc: 13004 <at> debbugs.gnu.org
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.6 (----)

Oleksandr Gavenko wrote:

>   $ hg diff -r 215 en-pronunciation_ru.rst

Right, but what does

hg log en-pronunciation_ru.rst

show?

Emacs just calls hg log. It seems that by default this does not follow
renames. You can add "-f" to vc-hg-log-switches. I don't think this
should be there by default if it is not the default behaviour of hg
itself.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#13004; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 26 Nov 2012 18:31:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Nov 26 13:31:05 2012
Received: from localhost ([127.0.0.1]:40413 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Td3SS-0003DQ-UZ
	for submit <at> debbugs.gnu.org; Mon, 26 Nov 2012 13:31:05 -0500
Received: from eggs.gnu.org ([208.118.235.92]:50565)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <gavenkoa@HIDDEN>) id 1Td3SP-0003Cz-SE
	for submit <at> debbugs.gnu.org; Mon, 26 Nov 2012 13:31:03 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1Td3Qi-0003Pm-4W
	for submit <at> debbugs.gnu.org; Mon, 26 Nov 2012 13:29:17 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:44284)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1Td3Qi-0003PT-0j
	for submit <at> debbugs.gnu.org; Mon, 26 Nov 2012 13:29:16 -0500
Received: from eggs.gnu.org ([208.118.235.92]:35318)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1Td3Qg-0001rX-Ry
	for bug-gnu-emacs@HIDDEN; Mon, 26 Nov 2012 13:29:15 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1Td3Qf-0003Ie-Pp
	for bug-gnu-emacs@HIDDEN; Mon, 26 Nov 2012 13:29:14 -0500
Received: from mail-ea0-f169.google.com ([209.85.215.169]:55023)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <gavenkoa@HIDDEN>) id 1Td3Qf-0003HN-Ie
	for bug-gnu-emacs@HIDDEN; Mon, 26 Nov 2012 13:29:13 -0500
Received: by mail-ea0-f169.google.com with SMTP id a12so4448105eaa.0
	for <bug-gnu-emacs@HIDDEN>; Mon, 26 Nov 2012 10:29:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:to:subject:date:message-id:mime-version:content-type;
	bh=Y7lRFRS7DED+jCWABv3YksfhyW3RCYJ8KV4POCyuiF0=;
	b=Na4eBIj+bxj8Kvk+j+i6WxEFSs8CWVMAvhbhIL+i5fqEjcIN37V8QFsjKLUIBp9wzH
	sC0h70Ix208v877wyn+AiBtxk21Gs9T52YLm7HBNllv/1YiAr0UR7UORYkLzDpUh/mtF
	0Ias1TlCc4Z7BLGtQ4ZOgPRwc6mxSrZrdwgdsw6E99LUBpla3ZsQbIWoPHfVSwnqM+Ca
	OcgONUOzpQFpQDUEWssRssOPfajN1q+V65I6Ujc2Y0iqn7bXl4FpjyWZG6DSohUgive8
	vMp/o/nOdGn4nNsmFPUy3r3GiZC8CVxQXyqnn/cPgTagW02f2UImsnZPAczWJYbZJIDo
	Pl1A==
Received: by 10.14.225.72 with SMTP id y48mr44615636eep.46.1353954552465;
	Mon, 26 Nov 2012 10:29:12 -0800 (PST)
Received: from desktop ([37.229.16.202])
	by mx.google.com with ESMTPS id f49sm4848915eep.12.2012.11.26.10.29.09
	(version=SSLv3 cipher=OTHER); Mon, 26 Nov 2012 10:29:11 -0800 (PST)
From: Oleksandr Gavenko <gavenkoa@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.2;
	vc-diff from vc-log doesn't show diff before renames (for Mercurial
	backend).
Date: Mon, 26 Nov 2012 20:29:08 +0200
Message-ID: <87boekdxqj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
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-Debbugs-Envelope-To: submit
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 (----)

As always:

  $ emacs -Q

Next I open any file from Mercurial repo which is "hg mv" or "hg cp".

If you build history "C-x v l" and try to look diff (log-view-diff or "d") for
changeset before rename you get message, like:

  Finding changes in /home/user/devel/my-devel/gadict/en-pronunciation_ru.rst...
  No changes between 214 and 215

while:

  $ hg diff -r 215 en-pronunciation_ru.rst

  diff --git a/en-spelling_ru.rst b/en-pronunciation_ru.rst
  copy from en-spelling_ru.rst
  copy to en-pronunciation_ru.rst
  --- a/en-spelling_ru.rst
  +++ b/en-pronunciation_ru.rst
  @@ -1,5 +1,4 @@
   .. -*- coding: utf-8 -*-
  -
   .. include:: header.rst

   ===================


In GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-09-09 on trouble, modified by Debian

Also reproduced in GNU Emacs 24.2.50.1 (x86_64-unknown-linux-gnu, GTK+ Version
2.24.10):

  $ bzr info -v

  Related branches:
    parent branch: bzr://bzr.savannah.gnu.org/emacs/emacs-24/

  Branch history:
    110934 revisions
     10084 days old
   first revision: Thu 1985-04-18 00:48:29 +0000
  latest revision: Wed 2012-11-21 21:28:14 +0200

I expect that vc-view-diff follow history on copy as this do original CLI
client "hg".

-- 
Best regards!




Acknowledgement sent to Oleksandr Gavenko <gavenkoa@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#13004; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.