Problems extracting renames

Brendan Cully brendan at kublai.com
Wed Feb 6 17:34:57 CST 2008


On Wednesday, 06 February 2008 at 14:44, Bryan O'Sullivan wrote:
> Yaron Minsky wrote:
> 
> > Interestingly, in the main tree we're looking at, we've seen that the
> > rename information shows up in some cases but not others.
> 
> It's difficult to reproduce this from some ASCII art.  I tried, and
> couldn't really figure out what you were getting at.
> 
> Could you write a small shell script that demonstrates what you're
> trying to show, and indicate where to look for the unexpected output?
> If there's something actually going wrong, that will make a good basis
> for a regression test.

I think there have been other reports that git diff doesn't always find
renames. Hopefully there's something in the bts about this. If not, Alexis
may remember more than I do. I believe the right answer is to make git diff
(and status) use the rename detection code in merge.py.  Currently one or
both of those have handrolled versions that aren't quite complete.


More information about the Mercurial mailing list