topics: import lock as lockmods
authorPulkit Goyal <7895pulkit@gmail.com>
Thu, 31 Aug 2017 13:22:40 +0200
changeset 2890 1e3d97486861
parent 2889 31cbace4c0f1
child 2891 b18d2b2f18a6
topics: import lock as lockmods We'll need a 'lock' variable in the next changeset. we move the module out of the way ahead of time for clarity.
hgext3rd/topic/__init__.py
--- a/hgext3rd/topic/__init__.py	Tue Aug 29 19:12:00 2017 +0530
+++ b/hgext3rd/topic/__init__.py	Thu Aug 31 13:22:40 2017 +0200
@@ -64,7 +64,7 @@
     extensions,
     hg,
     localrepo,
-    lock,
+    lock as lockmod,
     merge,
     namespaces,
     node,
@@ -389,7 +389,7 @@
             rewrote = _changetopics(ui, repo, rev, topic)
             txn.close()
         finally:
-            lock.release(txn, l, wl)
+            lockmod.release(txn, l, wl)
             repo.invalidate()
             ui.status('changed topic on %d changes\n' % rewrote)
         return