comparison mercurial/worker.py @ 28312:24f1d3c70c41

extensions: copy extra __dict__ of original function Future patches will make @command decorator set properties such as "norepo" to a function object. This patch makes sure these properties never be lost by wrapcommand() or wrapfunction(). This change won't be crazy as the standard functools.wraps() copies __dict__.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 09 Jan 2016 20:04:03 +0900
parents 3eb7faf6d958
children 78a58dcf8853
comparison
equal deleted inserted replaced
28311:1b0ef07ba783 28312:24f1d3c70c41