Hg根据状态选择文件?

res*_*ing 2 diff mercurial fileset

有没有办法只选择那些具有Modified状态的文件?
是否可以将选择链接以添加更具体的选择器?

我想导出那些Modified文件中的更改,在安装插件之前还原为changeset,然后重新导入更改.

hg diff -I与模式匹配可能会有所帮助,但在这种情况下,我经常只想根据文件状态选择文件.

hg st的示例(实际内容因文件名和文件名/扩展名不同而异):

M /readme.txt
M /dir1/somefile1.txt
M /dir2/somefile2.txt
M /dir3/somefile3.txt
M /dir4/somefile4.txt
! /plugin/lotsoffileshere.txt
! /plugin/lotsoffileshere.txt
! /plugin/lotsoffileshere.txt
Run Code Online (Sandbox Code Playgroud)

Laz*_*ger 6

阅读mercurial中的文件集: hg help filesets

如果你想获得所有修改过的文件的差异(hg diff FILE1 FILE2 ... FILE),那么为"修复文件在repo"中构建文件将是(仅使用帮助)

hg diff "set:modified()"