[PATCH] extensions: add onsub extension

Kevin Bullock kbullock+mercurial at ringworld.org
Tue Sep 16 23:03:13 CDT 2014


On Sep 12, 2014, at 6:39 PM, Angel Ezquerra <angel.ezquerra at gmail.com> wrote:

> # HG changeset patch
> # User Angel Ezquerra <angel.ezquerra at gmail.com>
> # Date 1409641307 -7200
> #      Tue Sep 02 09:01:47 2014 +0200
> # Node ID 507d196c9b1c823edbb6bf8f220acd0b0d734100
> # Parent  ca854cd4a26a8770fbc22b4d7ee1ac6823b682a5
> extensions: add onsub extension
> 
> The onsub extension lets you execute a command in each subrepository. This is
> useful when working with a repository that contains a large number of
> subrepositories. For example, it can be used for quickly updating all
> subrepositories:
> 
>  $ hg onsub 'hg pull --update'
> 
> This extension was originally written by Martin Geisler for aragost Trifork. The
> original repository is on bitbucket (https://bitbucket.org/lantiq/onsub/).
> The extension is quite simple (it has not required any changes since 2012, and
> it continues working fine to this day). The extension has a couple of tests.
> 
> I discussed the inclusion of this extension with Martin Geisler, the original
> author of the extension, during the Munich 3.2 sprint. He agreed to the
> inclusion of the extension, which I will try to maintain from now on.
> 
> Also note that this extension has been included with TortoiseHg for several
> major releases.
> 
> The code for the extension that included on this patch is identical to the
> latest version of the extension on its bitbucket repository. I had to make a
> few small changes to the tests:

I'm generally in favor of bringing this in if you'll take on maintenance. We have more accurate, history-proof ways of spelling "latest version" though. Please reference a specific changeset in the source repo.

Haven't much looked at the code itself yet.

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock



More information about the Mercurial-devel mailing list