evolve: fix over-idented block stable
authorSushil khanchi <sushilkhanchi97@gmail.com>
Wed, 27 Mar 2019 14:29:22 +0530
branchstable
changeset 4449 4a00de50bb3b
parent 4446 8232bddf543a
child 4450 9b0cde5efbc9
evolve: fix over-idented block
hgext3rd/evolve/__init__.py
--- 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