Moving Files (Refactoring in IDEs)

Bastian Doetsch bastian.doetsch at gmx.de
Mon Aug 17 13:59:59 CDT 2009



Alexander Schatten schrieb:
> I am using Mercurial since some weeks and generally like the system very much.
> 
> However, there is one significant issue I could not solve so far: as long as I work from command-line there is no problem, but for most software projects (Java) we use IDEs like Eclipse. Now particularly refactoring is a very strong feature of Eclipse.
> 
> Unfortunately it seems (to me) that this is a very weak point with Mercurial. "hg mv" works fine, of course, but Mercurial does not detect file renames done from Finder or Eclipse. Also not when the Eclipse Plugin is installed.
> 
> Consequentially renames are actually deletes and adds, when I am not wrong, hence I lose the history in the document.
> 
> Am I getting something wrong? Systems like git do, as far as I understand, automatically detect renames, moves and the like within the repository. Is this a feature that can be expected from Mercurial in the future or do I have a wrong understanding in general, as I am rather new in distributed SCM.
> 
> 
> Thanks a lot for any help 
> 

Hi there,

MercurialEclipse tracks renames, dunno about Merclipse though. Before 
being committed they are shown as removes and adds in status, though.

Best regards,
Bastian

> 
> 
> Alex
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
> 


More information about the Mercurial mailing list