How to ignore .classpath for Eclipse projects using Mercurial?

I am trying to provide a repository between my Mac (laptop) and PC (desktop). There are some external dependencies for the project, which are stored in different places on each machine and marked in the .classpath file in the Eclipse project. When project changes are shared, dependencies are interrupted. I am trying to figure out how to avoid this.

I tried using .hgignore with the following settings, among other things, without success:

syntax: glob *.classpath 

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

+4
source share
1 answer

The file does not have to be credited to be ignored (as you noted in your question), another wise β€œ hg remove -Af .classpath ” is required to remove it from the repo without removing it from the local working tree.

and

 syntax: glob .classpath 

should be enough (no "*" required)

+6
source

Source: https://habr.com/ru/post/1308565/


All Articles