- If a file is hg rm file and then hg cp other file, the diff just shows a modification (to the same named file), but the meta information in hgfelog.py says it is a copy and the parent rev is the rev id of the parent where it was copied from - so:
- That revision of the named file may not exist (as it is actually a rev of the copy source)
- If we use the copy source, we don't have the right diffs to properly calculate the LOC.
- If there was no revision of the copy target in the parent commit, (i.e. a copy over something that was deleted a while ago), the diff will work properly, diffing to the copy source and we can use that as the predecessor/ancestor.