[PATCH 0 of 4] keyword: make kwfiles behave in a more consistent way (3rd try)

Christian Ebert blacktrash at gmx.net
Wed Sep 30 22:51:41 UTC 2009


Hi,

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

in hgrc.

Summary of behaviour and option name changes:

old option names  old behaviour                     new option names  new behaviour
-u/--untracked    additionally show unknown files   -u/unknown        unknown files only (like status)
-a/--all          show [keyword] files w/o unknown  -A/--all          all files, except hgignored



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