hg status on current dir

TK Soh teekaysoh at gmail.com
Wed May 2 20:59:50 UTC 2007


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.

Next I need to find out how much it helps TortoiseHg ;-)




More information about the Mercurial mailing list