Mercurial > hg
diff contrib/dockerrpm @ 28959:518c3e392f75
lock: clear postrelease hooks list after usage
Post release hooks should only be called once. Setting the
list to None after usage will prevent accidental usage after
they are used.
In addition, it is easy for reference cycles to sneak into hook
functions. Clearing the hooks after usage helps prevent these
cycles.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 16 Apr 2016 09:00:15 -0700 |
parents | d713fa934fb9 |
children | a3ac1ea611ce |