display diff when file was moved?

Brad Larsen brad.larsen at gmail.com
Wed Nov 28 18:56:16 UTC 2007


On Wed, 28 Nov 2007 06:58:09 -0500, Georg <gwk.rko at googlemail.com> wrote:

> Yes, thanks for the suggestion.  Unfortunately it doesn't help. When
> refactoring code, you want to rename/move the classes and update  
> references
> to them simultaneously. Modern IDEs like Eclipse will do both in one
> step, actually, making sure your refactored code still compiles and  
> runs. So
> file moves and renames are in reality _always_ coupled to content  
> changes.
>
> --
> Regards,
> Georg.

Refactoring Java code is one of those cases where you shouldn't separate  
the two actions.  But there are plenty of cases where moves and renames  
are _not_ coupled to content changes---for example, when reorganizing data  
files/documentation; when working with a language where there isn't a 1-1  
correspondence between classes and files; when writing a paper with  
LaTeX...

In such cases I think it is better to keep the two conceptually separate  
actions in separate changesets.

Cheers,
Brad Larsen



More information about the Mercurial mailing list