[issue1589] No obvious way to diff with a file revision from before a rename
Geoff Bache
mercurial-bugs at selenic.com
Thu Apr 2 20:56:05 UTC 2009
New submission from Geoff Bache <geoff.bache at pobox.com>:
If I rename a file, I can track the log of changes previous to the rename by
doing "hg log -f". I can get annotations by "hg annotate -f". But I can't see
how to get a diff. I do as follows:
sofa-pc : hg init
sofa-pc : echo "dummy" > file
sofa-pc : hg add
adding file
sofa-pc : hg ci -m "First"
sofa-pc : hg mv file newname
sofa-pc : hg ci -m "Move"
sofa-pc : echo "edit" > newname
sofa-pc : hg ci -m "Edit"
sofa-pc : hg diff -r 0 newname
diff -r 9ce8100a487a newname
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/newname Thu Apr 02 22:29:19 2009 +0200
@@ -0,0 +1,1 @@
+edit
i.e. "hg diff" accepts revision 0 of file newname (when it was called "file")
but it compares to /dev/null.
Is there some other way I should be going about getting that diff? I can do "hg
cat -r 0 file" and then diff but it feels to me like the above ought to work...
----------
messages: 8971
nosy: gjb1002
priority: bug
status: unread
title: No obvious way to diff with a file revision from before a rename
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1589>
____________________________________________________
More information about the Mercurial-devel
mailing list