Mercurial > evolve
comparison hgext/obsolete.py @ 83:97a5c943db19
Compat with mercurial 1.9.2
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Mon, 19 Sep 2011 01:55:35 +0200 |
parents | 5d029a358252 |
children | c4cc5f3bcf12 |
comparison
equal
deleted
inserted
replaced
82:8108d566a8b5 | 83:97a5c943db19 |
---|---|
348 """Write obsolete relation on disk""" | 348 """Write obsolete relation on disk""" |
349 # XXX handle lock | 349 # XXX handle lock |
350 f = self.opener('obsolete-relations', 'w', atomictemp=True) | 350 f = self.opener('obsolete-relations', 'w', atomictemp=True) |
351 try: | 351 try: |
352 _obsserialise(self._obssubrels, f) | 352 _obsserialise(self._obssubrels, f) |
353 f.rename() | 353 try: |
354 f.rename() | |
355 except AttributeError: # old version | |
356 f.close() | |
354 finally: | 357 finally: |
355 f.close() | 358 f.close() |
356 | 359 |
357 ### local clone support | 360 ### local clone support |
358 | 361 |