ald.li
ald.li

Reputation: 121

Hg forget + ignore without deleting files on update

I want to forget and ignore a certain file in a mercurial repo, so that the file would not get deleted not only in my working copy but also in a peer developer's repo, when they pull my change and do an update. (A common case is, e.g., Eclipse's .classpath file, when you want it to be managed solely by Gradle from now on, but do not want to force devs to reimport the project.)

Is there any possibility to do this? Maybe there is something like this in other VCSs?

Upvotes: 2

Views: 54

Answers (1)

planetmaker
planetmaker

Reputation: 6044

Check hg forget:

From its help entry:

(...) This only removes files from the current branch, not from the entire project history, and it does not delete them from the working directory. (...)

Upvotes: 1

Related Questions