Mercurial > hg
diff contrib/undumprevlog @ 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 | 5bd1f6572db0 |
children | 4f76c0c490b3 |