Refactor the commit() method.
Break up the logic into a bunch of helper methods: _commit_objects() _commit_subtrans() _finish_one() _finish_rest() and possibly _commit_error() As a result of the changes, the high-level logic of a commit fits into 28 lines inside a try/finally. There are lots of details hidden in the methods, but the names capture the high-level behavior of the helpers.
Showing
Please register or sign in to comment