How to list all files in a repository in Mercurial (hg)?

后端 未结 5 777
小蘑菇
小蘑菇 2021-01-30 19:19

Is there a command in mercurial that will list all files currently under source control?

I can do a dir /s to list all files in my folder and subfolders,

5条回答
  •  无人共我
    2021-01-30 20:23

    hg status --all will list all the files in the tree, with a letter indicating its status: M for modified, C for clean (owned by hg), and I for ignored.

    For just ignored files, use hg status -i. For just files that will be added on the next commit, use hg status -a. These show only what you need to know and don't require scanning a long file list.

提交回复
热议问题