[PATCH 0 of 1] --local option to manifest command

Greg Ward greg-hg at gerg.ca
Sat Apr 17 14:40:01 CDT 2010


On Sat, Apr 17, 2010 at 3:16 PM, Sune Foldager <cryo at cyanite.org> wrote:
> I've found myself typing hg ls a few times (since there was hg cat, I
> assumed..), and I haven't even used svn much. Maybe it could be made an
> alias of manifest.

Here's how I think "hg ls" should behave:

  1) show working copy by default, or another revision with -r
  2) take patterns on command like just like "commit"
  3) support -I and -X
  4) have a -F flag to append "*" to executables and "@" to symlinks

The first two are stolen straight from "svn ls", which IMHO is a good
model to follow.  #3 is being a good Mercurial citizen.  #4 is for
consistency with Unix ls.

Unfortunately, this means that my hypothetical "hg ls" is incompatible
with "hg manifest", since it shows the parent of the working copy by
default.

"hg locate" is awfully close to "hg ls", except it gets patterns wrong:

  hg commit hgext               # commits everything in hgext
  hg locate hgext                 # shows nothing
  hg locate "hgext/**"           # shows everything in hgext

Grumble.

I think I'd rather leave manifest alone (i.e. do not alias it to ls)
and see if locate could be improved to implement my desired "hg ls".

Greg


More information about the Mercurial-devel mailing list