comparison mercurial/transaction.py @ 11685:aade8f133d11

cleanup: typos
author Patrick Mezard <pmezard@gmail.com>
date Mon, 26 Jul 2010 22:29:49 +0200
parents 5116a077c3da
children 14f3795a5ed7
comparison
equal deleted inserted replaced
11684:39bac1821b12 11685:aade8f133d11
113 return self 113 return self
114 114
115 def release(self): 115 def release(self):
116 if self.count > 0: 116 if self.count > 0:
117 self.usages -= 1 117 self.usages -= 1
118 # of the transaction scopes are left without being closed, fail 118 # if the transaction scopes are left without being closed, fail
119 if self.count > 0 and self.usages == 0: 119 if self.count > 0 and self.usages == 0:
120 self._abort() 120 self._abort()
121 121
122 def running(self): 122 def running(self):
123 return self.count > 0 123 return self.count > 0