changeset 2890:1e3d97486861

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.
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 31 Aug 2017 13:22:40 +0200
parents 31cbace4c0f1
children b18d2b2f18a6
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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