Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force Mercurial to always use --subrepos

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.

like image 494
Mark Robinson Avatar asked Apr 12 '11 00:04

Mark Robinson


1 Answers

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.

like image 63
Niall C. Avatar answered Sep 25 '22 16:09

Niall C.