RFC: files command

Matt Mackall mpm at selenic.com
Thu Nov 8 14:35:03 CST 2012


Right now we have two commands that give us lists of files, manifest and
locate.

manifest:
  reports on p1() by default
  can't reporting on working directory
  can't take file patterns
  can show file flags (-v) and hashes (--debug)
  has --all option

locate:
  works on working copy by default
  can take file patterns, but:
   works from repo root by default (!)
   works on unanchored patterns by default (!)
  can't report file flags
  doesn't have --all option
  has --print0 support

We could add all the locate features to manifest, but we still wouldn't
be able to work on the working copy (for lack of a syntax to specify the
working copy), or we could add all the manifest features to locate, but
we'd have to keep the weird pattern semantics.

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


-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list