Force Mercurial to always use --subrepos

279 Views Asked by At

Is it possible to configure Mercurial to always check subrepos?

I'd like it enabled all the time without having to specify it on the command each time.

1

There are 1 best solutions below

0
On BEST ANSWER

You can use an alias to do this. Add entries to your .hg/hgrc like:

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

And so on for the other subrepo-aware commands that you want. Looking at the help text for hg help subrepos, that would be add, archive, commit (I'm using v1.8.1 and it commits subrepos by default, but I seem to recall that earlier versions didn't), diff, incoming, outgoing, pull, push, status and update.