[PATCH 3 of 8] py3: make contrib/dumprevlog use absolute_import

Pulkit Goyal 7895pulkit at gmail.com
Thu May 12 16:54:56 EDT 2016


# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1463085889 -19800
#      Fri May 13 02:14:49 2016 +0530
# Node ID 861b81353987104a2690f0c3049a535873e3620a
# Parent  4d88112d78d27a46bfdbf05d78564b96e7f8d6b0
py3: make contrib/dumprevlog use absolute_import

diff --git a/contrib/dumprevlog b/contrib/dumprevlog
--- a/contrib/dumprevlog
+++ b/contrib/dumprevlog
@@ -2,8 +2,14 @@
 # Dump revlogs as raw data stream
 # $ find .hg/store/ -name "*.i" | xargs dumprevlog > repo.dump
 
+from __future__ import absolute_import
+
 import sys
-from mercurial import revlog, node, util
+from mercurial import (
+    node,
+    revlog,
+    util,
+)
 
 for fp in (sys.stdin, sys.stdout, sys.stderr):
     util.setbinary(fp)


More information about the Mercurial-devel mailing list