# HG changeset patch # User Greg Ward # Date 2009-07-22 00:31:45 # Node ID 8a4da138855324ebdaa41410c0500d5b8768cbd4 # Parent 3f650f6aa130211271c4bbb22af942ee6356aa01 transaction: document close(), abort() methods diff --git a/mercurial/transaction.py b/mercurial/transaction.py --- a/mercurial/transaction.py +++ b/mercurial/transaction.py @@ -118,6 +118,7 @@ class transaction(object): @active def close(self): + '''commit the transaction''' self.count -= 1 if self.count != 0: return @@ -131,6 +132,9 @@ class transaction(object): @active def abort(self): + '''abort the transaction (generally called on error, or when the + transaction is not explicitly committed before going out of + scope)''' self._abort() def _abort(self):