hg status not showing empty dirs out of dirstate

Emanuele Aina faina.mail at tiscali.it
Mon Jun 19 18:48:55 CDT 2006


Andrea Arcangeli argomentò:

>>as a default behaviour, I think, as nothing else in Mercurial works
>>explicitly in terms of directories.
> 
> My only argument is that the most common case when you run 'hg status'
> without arguments is to see what garbage has been left around. And if
> you don't see the orphaned directories in the output, you may not
> implement the cleanup scripts correctly. Surely using hg archive for the
> packaging would make it not a big deal.
> 
> Yet another way is to only show the orphaned directory if it's empty,
> that's more eye-friendly (this is an option we have regardless if we
> decide to have the feature opt-in or opt-out). Not sure what's best (all
> unknown dirs or only the empty ones?).

You can give a look at the "purge" extension in contrib, which should do
what you want with the "print-only" option.

The best approach to move purge out of contrib is the addition of empty 
directory detection to the tree-walk and using it from purge, instead of 
relying on the duplicated logic in purge.

-- 
Buongiorno.
Complimenti per l'ottima scelta.




More information about the Mercurial mailing list