This extension is not distributed with Mercurial.

Author: MartinGeisler

Current Maintainer: Lantiq

Repository: https://bitbucket.org/lantiq/onsub


The onsub extension will traverse all subrepositories and execute a command in each.

This can be used to update all subrepositories with one command:

$ hg onsub "hg pull -u"

The extension provides a number of environment variables for you to use in your commands:

You can also easily run commands on all subrepositories of a given type. For instance, to pull all git subrepositories:

$ hg onsub -t git "git pull origin master"

Consult hg help onsub after enabling the extension for the full and up-to-date documentation.


Configure your .hgrc to enable the extension by adding following lines:

onsub = path/to/onsub/onsub.py

CategoryExtension CategoryExtensionsByOthers

OnsubExtension (last edited 2017-08-09 07:52:12 by SimonHeimberg)