HomePhabricator

localrepo: don't use defaults arguments that will never be overridden

Authored by martinvonz.

Description

localrepo: don't use defaults arguments that will never be overridden

The commithook() callback will be called when the lock is
released. lock.release() calls the callback without arguments, so it
was quite confusing to me that this function declared extra
arguments. We can just close on the variables in the outer scope
instead.

Differential Revision: https://phab.mercurial-scm.org/D6336

Details

Committed
martinvonzMay 3 2019, 11:37 AM
Differential Revision
D6336: localrepo: don't use defaults arguments that will never be overridden
Parents
rHG6770df6e4365: tags: avoid double-reversing a list
Branches
Unknown
Tags
Unknown