Force Mercurial always use --subrepos

Is it possible to configure Mercurial to always check subrepos?

I would like it to turn on all the time without having to indicate it in the team every time.

+5
source share
1 answer

You can use alias for this. Add entries to .hg/hgrcas:

[alias]
status = status --subrepos
add = add --subrepos
...

And so on for the other subrepo support teams you want. Looking at the help text for hg help subrepos, it will be adding, archiving, fixing (I use v1.8.1, and it performs subrepos by default, but it seems that I remember that in previous versions it wasn’t), diff, outgoing, pull, push, status and update.

+5

All Articles