[PATCH 4 of 8] relink: use absolute_import
timeless
timeless at mozdev.org
Wed Mar 2 16:55:49 EST 2016
# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1456954574 0
# Wed Mar 02 21:36:14 2016 +0000
# Node ID f948049750972b71f738c438663db56a01f53335
# Parent 2d8ef1c7ff0f1d20f916825e476ba12afc8d4bfa
relink: use absolute_import
diff --git a/hgext/relink.py b/hgext/relink.py
--- a/hgext/relink.py
+++ b/hgext/relink.py
@@ -6,10 +6,18 @@
# GNU General Public License version 2 or any later version.
"""recreates hardlinks between repository clones"""
+from __future__ import absolute_import
-from mercurial import cmdutil, hg, util, error
+import os
+import stat
+
+from mercurial import (
+ cmdutil,
+ error,
+ hg,
+ util,
+)
from mercurial.i18n import _
-import os, stat
cmdtable = {}
command = cmdutil.command(cmdtable)
diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t
+++ b/tests/test-check-py3-compat.t
@@ -78,7 +78,6 @@
hgext/purge.py not using absolute_import
hgext/rebase.py not using absolute_import
hgext/record.py not using absolute_import
- hgext/relink.py not using absolute_import
hgext/share.py not using absolute_import
hgext/transplant.py not using absolute_import
hgext/win32mbcs.py not using absolute_import
More information about the Mercurial-devel
mailing list