views:

57

answers:

2

I've been pushing my source to a Mercurial repository. Today I needed to delete my local copy and re-clone. I did this by simply moving my local copy somewhere else (just in case) and typing "hg clone url".

This part has worked just fine.

However, when I try to pull the newly cloned local copy into Eclipse, I get the following error:

/Users/Andrew/Dev/Workspace/Android/MyProject overlaps the location of another project: 'MyProject'

My guess is that I have been committing some meta file or something that I shouldn't have. Does anyone have any ideas? Here is my .hgignore:

syntax: regexp
\.DS_Store
.swo
.swp
.metadata/
/bin/

Note: Looks like my hgignore is not blocking the gen folder. Could this be part of the problem?

A: 

I think the problem is that you moved your local copy away and then you try to add another project into Eclipse at the same location as what you had before and you are just confusing Eclipse...

I would recommend to try to use command line commands for Mercurial and when you get into Eclipse, first clean up existing projects before adding another one.

Matthieu
I'm not so sure this is right. I had a friend pull my source (who has never pulled it before) and he is having the same problem. If he sets his Eclipse working directory to ../Dev/Workspace/Android, places the project there and tries to open it in Eclipse, he gets the same error.
Andrew
Eclipse creates the files .project and .classpath and the folder .settings. Those are not needed by Android itself... maybe you can check that ?
Matthieu
I'll give it a shot. Thank you
Andrew