[PATCH 11 of 21 WIP-PY3K] revlog: convert to absolute_import

Matthew Turk matthewturk at gmail.com
Mon Oct 12 16:24:55 CDT 2015


# HG changeset patch
# User Matthew Turk <matthewturk at gmail.com>
# Date 1444684090 18000
#      Mon Oct 12 16:08:10 2015 -0500
# Node ID 1909a6e3207888e6ec19ba1dd5f574e4bc87e916
# Parent  7019a7cf1e31fb3898104330cf2066c138bcb234
revlog: convert to absolute_import

diff -r 7019a7cf1e31 -r 1909a6e32078 mercurial/revlog.py
--- a/mercurial/revlog.py	Mon Oct 12 16:07:18 2015 -0500
+++ b/mercurial/revlog.py	Mon Oct 12 16:08:10 2015 -0500
@@ -10,12 +10,20 @@
 This provides efficient delta storage with O(1) retrieve and append
 and O(changes) merge between branches.
 """
+from __future__ import absolute_import
 
 # import stuff from node for others to import from revlog
 import collections
-from node import bin, hex, nullid, nullrev
-from i18n import _
-import ancestor, mdiff, parsers, error, util, templatefilters
+from .node import bin, hex, nullid, nullrev
+from .i18n import _
+from . import (
+    ancestor,
+    mdiff,
+    parsers,
+    error,
+    util,
+    templatefilters
+)
 import struct, zlib, errno
 
 _pack = struct.pack


More information about the Mercurial-devel mailing list