mercurialtortoisehghgignore

Repository is changed after push on mercurial


When I create repository and push on server and when we clone the repository in local system the files are come with red signal means they are changed.

When we compare both repository I found that the content of files in .hg folder is changed. Can anyone pls tell me how to remove this problem!

Edit: When we change the .hg folder the red icon becomes green!!!!


Solution

  • If you take 1 modified (changed) file, watch the diff closely, and only see the difference is in new lines only, this is the classical newlines mess. (happens to most people when working crossplatform)

    There is a ready to use Mercurial Extension, taking care of this is problem. It's called eol. Learn how to use it and the problem from here: https://www.mercurial-scm.org/wiki/EolExtension