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.
--- 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