Files in the .hg directory appear when you run "hg status"

I am working on a project in Mercurial, and suddenly, when I run the “hg status”, I see a bunch of files in my “.hg” directory, which is reported as “not tracked”. It looks like this:

? .hg/00changelog.i ? .hg/00manifest.i ? .hg/branch ? .hg/branchheads.cache ? .hg/data/.hgignore.i ? .hg/data/.htaccess.i ? .hg/data/autostart.cgi.i ? .hg/data/common.py.i ? .hg/data/common.pyc.i ? .hg/data/cron.i ? .hg/data/index.html.i 

The list is much longer. I can show you everything if you want. Why is this happening? I know that the files in ".hg" are special for Mercurial, but why does it suddenly tell me now? It's annoying that my status list is cluttered with this stuff. How can I stop him?

+4
source share
1 answer

Try cloning your repository and see if the problem persists in the new clone. If this is not the case, you can copy all the uncommitted files, and then edit the default default path .hg / hgrc and forget about the broken clone. You can save the broken clone until you are sure that everything you need is safe in the new clone.

+1
source

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


All Articles