RFC: files command

Matt Mackall mpm at selenic.com
Mon Nov 26 17:26:52 CST 2012


On Wed, 2012-11-21 at 11:48 -0500, Greg Ward wrote:
> On 08 November 2012, Matt Mackall said:
> > Right now we have two commands that give us lists of files, manifest and
> > locate.

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

An ls synonym is a good idea.

> 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

Yep, that's one of the main three motivators.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list