# HG changeset patch # User Olle Lundberg # Date 2014-03-05 21:02:45 # Node ID 70d02abff434a2c3da5fdf0c10fc9d75a76b68ae # Parent a4d587c6e3dd142cd1a8d5713e161aca28e3f825 histedit: clean up lock imports We are alread importing the release function from lock, no need to actually import the module too. diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -156,7 +156,6 @@ from mercurial import error 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 @@ def cleanupnode(ui, repo, name, nodes): # 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')):