Mercurial:在添加之前检查要添加的文件

Hyd*_*erA 1 version-control mercurial repository

我想确保我的正则表达式在.htignore中正常工作.在将文件添加到存储库之前,我想查看hg add将添加哪些文件命令.我怎样才能做到这一点?

NA.*_*NA. 5

"hg status"将顾名思义显示文件的状态.

从"hg帮助状态"

The codes used to show the status of files are:
M = modified
A = added
R = removed
C = clean
! = missing (deleted by non-hg command, but still tracked)
? = not tracked
I = ignored
  = origin of the previous file listed as A (added)
Run Code Online (Sandbox Code Playgroud)

你也可以运行"hg add -n",它是干运行的,只打印输出但不对存储库做任何事情.