5

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.

Mark Robinson
  • 3,135
  • 1
  • 22
  • 37

1 Answers1

5

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.

jk.
  • 13,817
  • 5
  • 37
  • 50
Niall C.
  • 10,878
  • 7
  • 69
  • 61