[PATCH] extensions: add onsub extension

Angel Ezquerra angel.ezquerra at gmail.com
Sun Oct 12 09:07:12 CDT 2014

On Wed, Sep 17, 2014 at 6:03 AM, Kevin Bullock
<kbullock+mercurial at ringworld.org> wrote:
> 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.


I thought I had replied to this email, but it seems I did not. I will
resend the patch with a change to the commit message indicating the
short hash of the revision on the original onsub extension repository
that was the base for this patch.



More information about the Mercurial-devel mailing list