문제

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!!!!

도움이 되었습니까?

해결책

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

다른 팁

how do you push localy created repository to server? If there is no repo with same name(on server), you could not be able to create remote repo by push, you have to clone it to the server. Or, if there already is repository with same name, and you push some new localy created, there definitely will be something more in .hg on the server then on the local. Check if there isn't repo with same name on the server already. HTH

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top