Testing IDE refactoring for file moves
David I.
david.ishee at gmail.com
Tue Feb 28 19:37:18 UTC 2012
I was experimenting with Eclipse and Netbeans and their Mercurial plugins
for refactoring Java code.
I moved some files to new directories and I wanted to verify that the
plugins were doing a proper "hg mv" operation. (it isn't always clear in
the GUI intereface what is is really doing) How can I verify that from the
command line?
In the example below, I had a directory structure like this:
src/dir1/dir2/model/example.java
I want to remove the "dir1" level, so that dir2 is under src. I did the
refactoring in the IDE, then did this from the command line to check the
status:
hg status -C | grep example.java
A src/dir2/model/example.java
src/dir1/dir2/model/example.java
R src/dir1/dir2/model/example.java
This seems to indicate that the IDE was using a "hg mv" command since it
recorded a copy and a removal. Is this the correct interpretation?
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20120228/0d302002/attachment-0002.html>
More information about the Mercurial
mailing list