howto tell hg to work only on current folder

Dov Feldstern dfeldstern at fastimap.com
Tue Aug 19 12:16:49 CDT 2008


Marko Käning wrote:
>> 'hg stat .' or 'hg stat `pwd`' or 'hg stat path/to/check'
> 
> that's the obvious approach, but I want that hg learns to operate by 
> default only on the current dir!
> 
> But perhaps it was a design decision to not to do this...
> 
> I gather that there is no switch in .hgrc which would allow this change of 
> default behaviour. :(

You can add the following to your .hgrc:

[defaults]
status = .

(make sure it reads 'status', just 'stat' won't do.) I'm not sure how this will 
work in more complicated cases (like, where is '.' evaluated to when run from 
scripts and stuff?. But for basic command line usage it seems to work.

Dov


More information about the Mercurial mailing list