It's funny that when .hgignore is added for Mercurial, this file itself appears as "?" in hg status?

This is normal? Do you just need to add \.hgignore to the list to ignore yourself?

+4
source share
2 answers

Yes, but you do not want to ignore the .hgignore file. When a new person checks your repository, don’t you want them to get a list of ignored files? Instead, do hg add .hgignore; hg commit hg add .hgignore; hg commit .

Bottom line: .hgignore tracked like any other file in the repository.

+13
source

For Borealid add-on only answer ? in hg status means that the file is in the working directory, but is not tracked. Usually you see this in one of two situations:

  • The file got generated, which you do not need to check, for example, a compiled binary or something like that.
  • You have added a new file to your project, but not yet hg add .

In # 1, you need to add a file or file type to .hgignore . In # 2, you want an hg add file. In the case of .hgignore , this is # 2.

+2
source

All Articles