hg status on current dir
TK Soh
teekaysoh at gmail.com
Thu May 3 16:06:00 UTC 2007
On 5/3/07, Robin Farine <robin.farine at terminus.org> wrote:
> On Thursday May 3 2007 03:55, TK Soh wrote:
> > On 5/2/07, Matt Mackall <mpm at selenic.com> wrote:
> > > On Wed, May 02, 2007 at 03:59:50PM -0500, TK Soh wrote:
> > > > On 5/2/07, Robin Farine <robin.farine at terminus.org> wrote:
>
> [...]
>
> > > > > hg status --exclude 'glob:*/*' .
> > > >
> > > > Thanks for all the suggestions, but this one seems to be most
> > > > generic one, since I don't need to know the list of folders
> > > > or files up-front. Thanks.
> > >
> > > Unfortunately exclude doesn't seem to be very effective at
> > > keeping the subdirectories from actually being statted.
> >
> > Do you mean status will still travel into the subdirs, so the
> > execution will be the same?
>
> It will traverse direct subdirectories, no deeper. Granted, bad
> cases will cause a lot of unneeded stats. The advantage is that you
Unfortunately that's what I'm try to avoid too.
> get all the information you need about the current directory, i.e.
> including added or deleted files.
I wonder if there's a way to find out if a directory has been
'modified' without having to traverse deeper into it's subdirs. I also
need to find out if a directory is 'tracked' by Hg, but the problem is
that Hg does not track directories :-(
More information about the Mercurial
mailing list