[issue762] git format diffs are confused by source file modification after copy

Richard Lowe mercurial-bugs at selenic.com
Thu Oct 4 00:37:14 UTC 2007


New submission from Richard Lowe <richlowe at richlowe.net>:

git format diffs mis-represent changes where a file was copied, and then the
source file changed.

For instance:
% hg cp a b
% hg ci -m "Copy"
% echo "foo" > a
% hg ci -m "Two"

A git format diff will show the copy a to b, but not realize that b should have
the content of the *old* a.

A script to reproduce this is attached.

----------
files: repro.sh
messages: 4069
nosy: richlowe
priority: urgent
status: unread
title: git format diffs are confused by source file modification after copy

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue762>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: repro.sh
Type: application/x-shellscript
Size: 587 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20071004/6e4e0f56/attachment-0002.bin>


More information about the Mercurial-devel mailing list