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

Greg Ward greg-hg at gerg.ca
Sat Apr 17 13:44:03 CDT 2010


On Fri, Apr 16, 2010 at 3:42 AM, Dirkjan Ochtman <dirkjan at ochtman.nl> wrote:
> On Fri, Apr 16, 2010 at 09:38, Adrian Buehlmann <adrian at cadifra.com> wrote:
>> May I ask: Why isn't it useful?
>>
>> Can the same be achieved in a different way?
>>
>> I have no strong opinion myself, I'm just curious if I might have
>> overlooked something you probably know better than myself.
>
> If you want a list of files under version control in the working dir,
> status seems a better match (as tonfa proposed on the issue).
>
> Conceptually, it seems to me like a working dir doesn't have a
> "manifest", only changesets do. So this would seem to muddy the
> concept.

This sounds like it's getting close to "hg ls", which is something I'd
like to have.  (My idea is based on "svn ls", which quite sensibly
lists the contents of the working copy by default, or a specified
revision if you pass it -r.  I believe "bzr ls" is similar.)

The best argument in favour is consistency: there should be one way to
list files, regardless of whether they are already committed in a
changeset or just a potential changeset in the working dir.  "hg
status -Camn" might be obvious to you, but it sure as heck isn't to
most users.  (It never occurred to me, and I like to think that I know
my way around Mercurial pretty well.  ;-)

Greg


More information about the Mercurial-devel mailing list