Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 11230:5116a077c3da
make transactions work on non-refcounted python implementations
author | Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de> |
---|---|
date | Thu, 27 May 2010 17:47:40 +0200 |
parents | 5cdac5c35e68 |
children | 3d0591a66118 |
comparison
equal
deleted
inserted
replaced
11229:1e701ffd9df4 | 11230:5116a077c3da |
---|---|
969 | 969 |
970 if self._branchcache: | 970 if self._branchcache: |
971 self.branchtags() | 971 self.branchtags() |
972 return n | 972 return n |
973 finally: | 973 finally: |
974 del tr | 974 if tr: |
975 tr.release() | |
975 lock.release() | 976 lock.release() |
976 | 977 |
977 def destroyed(self): | 978 def destroyed(self): |
978 '''Inform the repository that nodes have been destroyed. | 979 '''Inform the repository that nodes have been destroyed. |
979 Intended for use by strip and rollback, so there's a common | 980 Intended for use by strip and rollback, so there's a common |
2192 # make changelog see real files again | 2193 # make changelog see real files again |
2193 cl.finalize(trp) | 2194 cl.finalize(trp) |
2194 | 2195 |
2195 tr.close() | 2196 tr.close() |
2196 finally: | 2197 finally: |
2197 del tr | 2198 tr.release() |
2198 | 2199 |
2199 if changesets > 0: | 2200 if changesets > 0: |
2200 # forcefully update the on-disk branch cache | 2201 # forcefully update the on-disk branch cache |
2201 self.ui.debug("updating the branch cache\n") | 2202 self.ui.debug("updating the branch cache\n") |
2202 self.branchtags() | 2203 self.branchtags() |