[PATCH 5 of 5] copies: use absolute_import

Gregory Szorc gregory.szorc at gmail.com
Sat Aug 8 03:00:26 CDT 2015


# HG changeset patch
# User Gregory Szorc <gregory.szorc at gmail.com>
# Date 1439019673 25200
#      Sat Aug 08 00:41:13 2015 -0700
# Node ID 1903e8255b5ba7fda2e702ca522d8196559f8a65
# Parent  6db2ce9a7922d4cae99bf608d9fd40cfbd1a7d56
copies: use absolute_import

diff --git a/mercurial/copies.py b/mercurial/copies.py
--- a/mercurial/copies.py
+++ b/mercurial/copies.py
@@ -4,11 +4,17 @@
 #
 # This software may be used and distributed according to the terms of the
 # GNU General Public License version 2 or any later version.
 
-import util, pathutil
+from __future__ import absolute_import
+
 import heapq
 
+from . import (
+    pathutil,
+    util,
+)
+
 def _findlimit(repo, a, b):
     """
     Find the last revision that needs to be checked to ensure that a full
     transitive closure for file copies can be properly calculated.


More information about the Mercurial-devel mailing list