comparison mercurial/util.h @ 24734:fb6cb1b82f4f

extensions: extract partial application into a bind() function We use partial function application for wrapping existing Mercurial functions, and it's implemented separately each time. This patch extracts the partial application into a new bind() function that can be used on its own by extensions when appropriate. In particular, the evolve extension needs to wrap functions in the various bundle2 processing dictionaries, which the pre-existing methods don't support.
author Eric Sumner <ericsumner@fb.com>
date Wed, 15 Apr 2015 12:18:05 -0400
parents 1c533e23ce95
children 3550ccbafca2
comparison
equal deleted inserted replaced
24733:c00e4338fa4b 24734:fb6cb1b82f4f