hg status on current dir

Matt Mackall mpm at selenic.com
Wed May 2 22:23:06 UTC 2007


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:
> > On Wednesday May 2 2007 19:53, Marcin Kasperski wrote:
> > > Dnia środa, 2 maja 2007 19:03, Matt Mackall napisał:
> > > > On Wed, May 02, 2007 at 11:53:56AM -0500, TK Soh wrote:
> > > > > Before I start digging in the code, I wonder if it's
> > > > > possible for hg status to check the files in the cwd without
> > > > > traveling into the subdirs.
> > > >
> > > > Yes:
> > > >
> > > > hg status <explicit list of files>
> > >
> > > Or maybe
> > >
> > >   hg status --exclude subdir1 --exclude sibdir2 .
> > >
> > > (specifying all subdirectories). Usually there are less
> > > subdirectories than files ;-)
> >
> > Now that you mention exclude, how about
> >
> >   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.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial mailing list