Two weeks ago I showed how to filter output of
hg status with
awk. That simple
awk script removes unknown (untracked) files from output and also removes the file status: you get a simple list of modified/added files.
Actually, you can do this without using
awk because Mercurial has advanced options for
hg status --quiet --no-status
Or with short aliases:
hg st -q -n
The result is the same: you get the plain list of modified files, and files which are not under source control are ignored.