As Martin said, I wrote my own extension. I will post the code here, in the hope that someone will improve it or make it defaulf available in mercurial ...
Thank you, Martin, I based it on your onsub extension, and yes, I know that there are several problems with it, but at the moment it serves its purpose. (problems with more than 10 subrepos and more than 1 level of nesting)
"""execute the Bundle command in a repository and each subrepository""" # bundlesb.py - execute the Bundle command in a repository and each subrepository # # Copyright 2012 Johan G. # # This software may be used and distributed according to the terms of # the GNU General Public License version 2 or any later version. import os import zipfile from mercurial.i18n import _ from mercurial import extensions, subrepo, util def bundlesb(ui, repo, *args, **opts): """execute the Bundle command in a repository and each subrepository Creates a combined bundle (with hgs extention) for the current repository. Because the revision numbers of the root and the subrepos will differ, we cannot reliably choose a revision to start from. A date to start from should be nice, but i have not taken the time to implement this. Instead i choose to take the N (default=10) last changesets into account. This seems to work well in our environment. Instead of providing the number of changesets for the operation, you can also specify -a to include all changesets. Use
And vice versa:
"""execute the UnBundle command in a repository and each subrepository for a file created with BundleSb""" # unbundlesub.py - execute the UnBundle command in a repository and each subrepository # # Copyright 2012 Johan G. # # This software may be used and distributed according to the terms of # the GNU General Public License version 2 or any later version. import os import zipfile #import glob from mercurial.i18n import _ from mercurial import extensions, subrepo, util def unbundlesb(ui, repo, *args, **opts): """execute the UnBundle command in a repository and each subrepository for a file created with BundleSb Updates the current repository from a combined bundle (with hgs extention). Use
source share