histedit: clean up lock imports
authorOlle Lundberg <geek@nerd.sh>
Wed, 05 Mar 2014 22:02:45 +0100
changeset 20647 70d02abff434
parent 20646 a4d587c6e3dd
child 20648 0838bd2f600f
histedit: clean up lock imports We are alread importing the release function from lock, no need to actually import the module too.
hgext/histedit.py
--- a/hgext/histedit.py	Wed Mar 05 17:42:05 2014 -0800
+++ b/hgext/histedit.py	Wed Mar 05 22:02:45 2014 +0100
@@ -156,7 +156,6 @@
 from mercurial import copies
 from mercurial import context
 from mercurial import hg
-from mercurial import lock as lockmod
 from mercurial import node
 from mercurial import repair
 from mercurial import scmutil
@@ -901,7 +900,7 @@
             # This would reduce bundle overhead
             repair.strip(ui, repo, c)
     finally:
-        lockmod.release(lock)
+        release(lock)
 
 def summaryhook(ui, repo):
     if not os.path.exists(repo.join('histedit-state')):