# HG changeset patch # User timeless # Date 1456953996 0 # Node ID 81ad683278b826e8977e94401abd9815fe3b7506 # Parent fa2cd0c9a56731dc1a452a08c50500a573b594ee strip: use absolute_import diff -r fa2cd0c9a567 -r 81ad683278b8 hgext/strip.py --- a/hgext/strip.py Fri Mar 04 14:44:32 2016 +0000 +++ b/hgext/strip.py Wed Mar 02 21:26:36 2016 +0000 @@ -3,11 +3,23 @@ This extension allows you to strip changesets and all their descendants from the repository. See the command help for details. """ +from __future__ import absolute_import + +from mercurial import ( + bookmarks as bookmarksmod, + cmdutil, + error, + hg, + lock as lockmod, + merge, + node as nodemod, + repair, + scmutil, + util, +) from mercurial.i18n import _ -from mercurial.node import nullid -from mercurial.lock import release -from mercurial import cmdutil, hg, scmutil, util, error -from mercurial import repair, bookmarks as bookmarksmod , merge +nullid = nodemod.nullid +release = lockmod.release cmdtable = {} command = cmdutil.command(cmdtable) diff -r fa2cd0c9a567 -r 81ad683278b8 tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t Fri Mar 04 14:44:32 2016 +0000 +++ b/tests/test-check-py3-compat.t Wed Mar 02 21:26:36 2016 +0000 @@ -63,7 +63,6 @@ hgext/schemes.py not using absolute_import hgext/share.py not using absolute_import hgext/shelve.py not using absolute_import - hgext/strip.py not using absolute_import hgext/transplant.py not using absolute_import hgext/win32mbcs.py not using absolute_import hgext/win32text.py not using absolute_import