hgext/share.py
changeset 29485 6a98f9408a50
parent 29424 f21e0d91d386
child 29506 2550604f5ec7
--- a/hgext/share.py	Fri Jul 01 19:17:45 2016 -0700
+++ b/hgext/share.py	Sun Jul 03 22:28:24 2016 +0530
@@ -37,10 +37,22 @@
     The default naming mode is "identity."
 '''
 
+from __future__ import absolute_import
+
+import errno
 from mercurial.i18n import _
-from mercurial import cmdutil, commands, hg, util, extensions, bookmarks, error
-from mercurial.hg import repository, parseurl
-import errno
+from mercurial import (
+    bookmarks,
+    cmdutil,
+    commands,
+    error,
+    extensions,
+    hg,
+    util,
+)
+
+repository = hg.repository
+parseurl = hg.parseurl
 
 cmdtable = {}
 command = cmdutil.command(cmdtable)