How to ignore the .classpath for Eclipse projects using Mercurial?

Posted by Feanor on Stack Overflow See other posts from Stack Overflow or by Feanor
Published on 2010-05-01T22:29:36Z Indexed on 2010/05/01 22:37 UTC
Read the original article Hit count: 231

I'm trying to share a repository between my Mac (laptop) and PC (desktop). There are some external dependencies for the project that are stored on different places on each machine, and noted in the .classpath file in the Eclipse project. When the project changes are shared, the dependencies break. I'm trying to figure out how to keep this from happening.

I've tried using .hgignore with the following settings, among others, without success:

syntax: glob
*.classpath

Based on this question, it appears that the .hgignore file will not allow Mercurial to ignore files that are also committed to the repository. Is there another way around this? Other ways to configure the project to make it work?

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about mercurial