--- a/hgext3rd/evolve/__init__.py Mon Mar 25 15:45:11 2019 -0700
+++ b/hgext3rd/evolve/__init__.py Wed Mar 27 14:29:22 2019 +0530
@@ -844,14 +844,14 @@
created = ret[1]
if (opts['obsolete'] and None not in (created, expected['node'])
and created != expected['node']):
- tr = repo.transaction('import-obs')
- try:
- metadata = {'user': ui.username()}
- repo.obsstore.create(tr, expected['node'], (created,),
- metadata=metadata)
- tr.close()
- finally:
- tr.release()
+ tr = repo.transaction('import-obs')
+ try:
+ metadata = {'user': ui.username()}
+ repo.obsstore.create(tr, expected['node'], (created,),
+ metadata=metadata)
+ tr.close()
+ finally:
+ tr.release()
return ret