Marking subrepos in 'hg status'

Martin Geisler mg at aragost.com
Mon Oct 18 10:05:03 CDT 2010


timeless <timeless at gmail.com> writes:

> On Mon, Oct 18, 2010 at 3:57 PM, Martin Geisler <mg at aragost.com> wrote:
>> See, that is a good question... :) I guess you should not see the 'M
>> sub/' line in that case, so the output would be
>
> you could have:
>
> M sub/
> A sub/
>
> (for each class of operations on sub/)

Yes, we could do that... Erik's patches add the sub/ line and changes
the sorting of the status output from

   M sub1/a
   M sub2/x
   A sub1/b
   A sub2/y

to this, where we sort by subrepo:

   M sub1/
   M sub1/a
   A sub1/b
   M sub2/
   M sub2/x
   A sub2/y

With your suggestion we can have

   M sub1/
   M sub1/a
   M sub2/
   M sub2/x
   A sub1/
   A sub1/b
   A sub2/
   A sub2/y

Where we first sort by state and then by subrepo. It does lead to quite
a few mentions of each subrepository, though.

-- 
Martin Geisler

aragost Trifork
Professional Mercurial support
http://aragost.com/mercurial/


More information about the Mercurial-devel mailing list