[PATCH 3 of 3 V4] largefiles: setup "largefiles" feature in each repositories individually
Siddharth Agarwal
sid0 at fb.com
Tue Sep 24 21:05:01 UTC 2013
On 09/21/2013 05:39 AM, FUJIWARA Katsunori wrote:
> +def featuresetup(ui, supported):
> + for name, module in extensions.extensions(ui):
> + if __name__ == module.__name__:
> + # don't die on seeing a repo with the largefiles requirement
> + supported |= set(['largefiles'])
> + return
Is there a more elegant way to do this? Seems like basically every
extension that adds something to the supported list will need to do
precisely this.
More information about the Mercurial-devel
mailing list