diff --git a/hgext/rebase.py b/hgext/rebase.py
index 70448ec995c25f4d5e5a3218d8806bb2b006834c_aGdleHQvcmViYXNlLnB5..8eeed92475d5bc34c59114e760da1787e459bc5e_aGdleHQvcmViYXNlLnB5 100644
--- a/hgext/rebase.py
+++ b/hgext/rebase.py
@@ -34,7 +34,6 @@
     error,
     extensions,
     hg,
-    lock,
     merge as mergemod,
     mergeutil,
     obsolete,
@@ -52,8 +51,6 @@
     util,
 )
 
-release = lock.release
-
 # The following constants are used throughout the rebase module. The ordering of
 # their values must be maintained.