From: Oleksandr Gavenko <gavenkoa@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: 13004@debbugs.gnu.org
Subject: bug#13004: 24.2; vc-diff from vc-log doesn't show diff before renames (for Mercurial backend).
Date: Tue, 27 Nov 2012 21:27:42 +0200 [thread overview]
Message-ID: <87haoau9qp.fsf@gavenkoa.example.com> (raw)
In-Reply-To: <myzk243u5m.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 26 Nov 2012 16:56:37 -0500")
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!
next prev parent reply other threads:[~2012-11-27 19:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-26 18:29 bug#13004: 24.2; vc-diff from vc-log doesn't show diff before renames (for Mercurial backend) Oleksandr Gavenko
2012-11-26 21:46 ` Glenn Morris
2012-11-26 21:49 ` Glenn Morris
2012-11-26 21:54 ` Glenn Morris
2012-11-26 21:56 ` Glenn Morris
2012-11-27 19:27 ` Oleksandr Gavenko [this message]
2012-11-27 20:09 ` Glenn Morris
2012-11-27 20:51 ` Oleksandr Gavenko
2012-11-28 20:26 ` Glenn Morris
2023-12-15 21:09 ` Dmitry Gutov
2012-11-27 21:01 ` Oleksandr Gavenko
2012-11-28 20:29 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87haoau9qp.fsf@gavenkoa.example.com \
--to=gavenkoa@gmail.com \
--cc=13004@debbugs.gnu.org \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.