{i} This page does not meet our wiki style guidelines. Please help improve this page by cleaning up its formatting.

onsub

This extension is not distributed with Mercurial.

Author: MartinGeisler

Current Maintainer: Lantiq

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

Overview

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:

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

Configuration

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

[extensions]
onsub = path/to/onsub/onsub.py


CategoryExtensionsByOthers