Released: | 2007-06-18 |
---|
Released: | 2007-06-12 |
---|
The kind() and is_executable() APIs on the WorkingTree interface no longer implicitly (read) locks and unlocks the tree. This might impact some plug-ins and tools using this part of the API. If you find an issue that may be caused by this change, please let us know, particularly the plug-in/tool maintainer. If encountered, the API fix is to surround kind() and is_executable() calls with lock_read() and unlock() like so:
work_tree.lock_read()
try:
kind = work_tree.kind(...)
finally:
work_tree.unlock()