[PATCH 10 of 17 V2] py3: make largefiles/reposetup.py use absolute_import

liscju piotr.listkiewicz at gmail.com
Thu May 12 06:20:32 EDT 2016


# HG changeset patch
# User liscju <piotr.listkiewicz at gmail.com>
# Date 1462885462 -7200
#      Tue May 10 15:04:22 2016 +0200
# Node ID 28d13fbdecaf94fe8c733342ad9f8ce7f49c165b
# Parent  140e725d2557e88dddf9e5a1b49a53b620d8e45d
py3: make largefiles/reposetup.py use absolute_import

diff -r 140e725d2557 -r 28d13fbdecaf hgext/largefiles/reposetup.py
--- a/hgext/largefiles/reposetup.py	Tue May 10 15:00:22 2016 +0200
+++ b/hgext/largefiles/reposetup.py	Tue May 10 15:04:22 2016 +0200
@@ -7,14 +7,23 @@
 # GNU General Public License version 2 or any later version.
 
 '''setup for largefiles repositories: reposetup'''
+from __future__ import absolute_import
+
 import copy
 
-from mercurial import error, match as match_, error
 from mercurial.i18n import _
-from mercurial import scmutil, localrepo
 
-import lfcommands
-import storeutil
+from mercurial import (
+    error,
+    localrepo,
+    match as match_,
+    scmutil,
+)
+
+from . import (
+    lfcommands,
+    storeutil,
+)
 
 def reposetup(ui, repo):
     # wire repositories should be given new wireproto functions
diff -r 140e725d2557 -r 28d13fbdecaf tests/test-check-py3-compat.t
--- a/tests/test-check-py3-compat.t	Tue May 10 15:00:22 2016 +0200
+++ b/tests/test-check-py3-compat.t	Tue May 10 15:04:22 2016 +0200
@@ -10,7 +10,6 @@
   hgext/hgcia.py not using absolute_import
   hgext/highlight/__init__.py not using absolute_import
   hgext/highlight/highlight.py not using absolute_import
-  hgext/largefiles/reposetup.py not using absolute_import
   hgext/largefiles/storeutil.py not using absolute_import
   hgext/largefiles/uisetup.py not using absolute_import
   hgext/largefiles/wirestore.py not using absolute_import


More information about the Mercurial-devel mailing list