RFC: files command

Greg Ward greg at gerg.ca
Wed Nov 21 10:48:11 CST 2012


On 08 November 2012, Matt Mackall said:
> Right now we have two commands that give us lists of files, manifest and
> locate.

Sorry I'm a bit late to this. Been away from mercurial-devel for a
while. This is something I've always wanted to improve, but never got
around to.

[...]
> So the proposed command would combine the best of these two commands and
> fix some of the strangeness of locate:
> 
> files:
>   works on working copy by default
>   has 'normal' path handling, same as status
>   can show file flags (-v) and hashes (--debug)
>   has --all option
>   has --print0 support

svn and bzr each have an "ls" command, so why not call it that
instead? Principle of least surprise and all that.

I hope the intention is that filenames and patterns will have the same
meaning as with "commit" or "status", which has always confused me
about "locate". I.e.

    hg ls/files $ARGS

should list exactly the same files, although in different order, as

    hg status -An $ARGS

       Greg


More information about the Mercurial-devel mailing list