[PATCH 0 of 4] keyword: make kwfiles behaviour more consistent

Christian Ebert blacktrash at gmx.net
Sun Sep 27 22:21:38 UTC 2009


Hi,

[ resent with a slight cosmetic change ]

These patches aim to make "hg kwfiles" more consistent,
especially wrt "hg status" by increasing the similarity in both
output and code where the behaviour is the same.

The long name of the -u option changes to --unknown.
The short name of the --all option changes to -A.
-u/--unknown now shows unknown files *only*.
-A/--all now also shown unknown files.

Differences to "hg status":

Except with -v or -A no status flags will be displayed; it's
"kwfiles", not "kwstatus", and normally a plain list of files
suffices for its purpose. Therefore the changed behaviour of
-u/--unknown makes more sense.
It never lists files that are ignored by hg, -i/--ignore (without
"d") refers to files that are ignored by the extension, not by
hg.

Perhaps --ignore should be replaced by -e/--excluded (collides
with -X though), but the rationale to choose --ignore was that it
reflects

[keyword]
pattern = ignore


Crew repo with patches on top:
http://www.blacktrash.org/hg/hg-crew-mq/

Patch queue:
http://www.blacktrash.org/hg/hg-queue/

c


More information about the Mercurial-devel mailing list