Marking subrepos in 'hg status'
Martin Geisler
mg at aragost.com
Mon Oct 18 07:57:18 CDT 2010
timeless <timeless at gmail.com> writes:
> On Mon, Sep 27, 2010 at 7:26 PM, Martin Geisler <mg at aragost.com> wrote:
>> That is strange since the subrepo has not been added. An alternative
>> would be to move the recusion up, so that all status lines are kept
>> together for each subrepo:
>>
>> $ hg status -S
>> M dir/x.txt
>> A dir/y.txt
>> M sub/
>> M sub/a.txt
>> A sub/b.txt
>>
>> which I think works better, though it results in scrambled order of
>> added and modified files. What do you guys think?
>
> what if i'm annoying and do hg st -S -a?
See, that is a good question... :) I guess you should not see the 'M
sub/' line in that case, so the output would be
$ hg status -S --added
A dir/y.txt
A sub/b.txt
Since the user has asked us to prune the list, I think it is okay that
there is no indication of the subrepo.
--
Martin Geisler
aragost Trifork
Professional Mercurial support
http://aragost.com/mercurial/
More information about the Mercurial-devel
mailing list