How to get subrepo status in CLI (like tortoisehg)

John Gee john at ruru.gen.nz
Fri Oct 21 06:35:15 UTC 2016


On 19/10/2016, at 02:42, David Demelier <demelier.david at gmail.com> wrote:
> 
> Hello,
> 
> TortoiseHG shows nice status about subrepositories like this:
> 
> S GameCore 4
> S GameTests 4
> 
> But I can't get the same with hg on the command line, even with -S
> option. Instead it shows all the files relative to their repositories,
> like this:
> 
> hg status -S
> M GameCore\common\CMakeLists.txt
> M GameCore\src\CMakeLists.txt
> 
> 1. Is there a way to get the same presentation as thg?
> 2. How do I know in a top repository that a subrepository revision has
> changed and that I need to commit to update the .hgsubstate file?

For the second question, "hg summary" includes if subrepository revisions have changed. 

e.g.
$ hg summ
parent: 13918:7712d03385dc tip
Latest
branch: default
commit: 1 subrepos
update: (current)

--
John Gee
Programmers live in interesting times...




More information about the Mercurial mailing list