# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1504178560 -7200 # Node ID 1e3d97486861b6a790f7d41c7a37ffd5145fe4fc # Parent 31cbace4c0f12c2353aa459a5db8e875a456c191 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. diff -r 31cbace4c0f1 -r 1e3d97486861 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