Mercurial - Class 文件未显示在 hg 状态中

Mercurial - Class files not showing in on hg status

我的本地存储库中有很多 java 类,我记得当我写 hg status 时它们出现了。现在我再也看不到它们了,尽管它们仍然存在!

这里发生了什么,如何让 hg status 再次显示它们?

hg status,默认情况下,仅显示以某种方式更改的文件(新的、已删除的或相对于工作副本已更改的文件) parent).

来自 hg status --help 页面:

Show status of files in the repository. If names are given, only files that match are shown. Files that are clean or ignored or the source of a copy/move operation, are not listed unless -c/--clean, -i/--ignored, -C/--copies or -A/--all are given.

如果您没有对 class 文件进行任何更改,hg status 将不会列出它们,除非您专门询问该文件的状态 (hg status path/to/classfile)或要求它列出所有文件或所有 clean 文件(未更改的文件),其中 hg status --clean.