changeset 1933:ca8674a8fce4

destination: move to new style import This unify with the new core Mercurial usage and this will make future changes to the imports easier to track.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 30 Mar 2016 03:44:47 -0700
parents 880aac9dbfa6
children 9d6d30e36cdd
files hgext3rd/topic/destination.py
diffstat 1 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/topic/destination.py	Wed Mar 30 03:44:37 2016 -0700
+++ b/hgext3rd/topic/destination.py	Wed Mar 30 03:44:47 2016 -0700
@@ -1,9 +1,13 @@
-from mercurial import error
-from mercurial import util
-from mercurial import destutil
-from mercurial import extensions
-from mercurial import bookmarks
+from __future__ import absolute_import
+
 from mercurial.i18n import _
+from mercurial import (
+    bookmarks,
+    destutil,
+    error,
+    extensions,
+    util,
+)
 
 def _destmergebranch(orig, repo, action='merge', sourceset=None, onheadcheck=True):
     p1 = repo['.']