[PATCH 5 of 7] children: use absolute_import
Gregory Szorc
gregory.szorc at gmail.com
Tue Feb 9 20:52:40 EST 2016
# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1455068072 28800
# Tue Feb 09 17:34:32 2016 -0800
# Node ID 265d8d09b0be997064ea4b5ec4e0ff5e50eadf88
# Parent 3f54d7079a3f6704c103633290aaca137411f4a2
children: use absolute_import
diff --git a/hgext/children.py b/hgext/children.py
--- a/hgext/children.py
+++ b/hgext/children.py
@@ -13,11 +13,17 @@
This extension is deprecated. You should use :hg:`log -r
"children(REV)"` instead.
'''
-from mercurial import cmdutil
-from mercurial.commands import templateopts
+from __future__ import absolute_import
+
from mercurial.i18n import _
+from mercurial import (
+ cmdutil,
+ commands,
+)
+
+templateopts = commands.templateopts
cmdtable = {}
command = cmdutil.command(cmdtable)
# Note for extension authors: ONLY specify testedwith = 'internal' for
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
@@ -31,9 +31,8 @@
doc/check-seclevel.py not using absolute_import
doc/gendoc.py not using absolute_import
doc/hgmanpage.py not using absolute_import
hgext/__init__.py not using absolute_import
- hgext/children.py not using absolute_import
hgext/churn.py not using absolute_import
hgext/clonebundles.py not using absolute_import
hgext/color.py not using absolute_import
hgext/convert/__init__.py not using absolute_import
More information about the Mercurial-devel
mailing list