--- a/hgext/obsolete.py Tue Aug 07 15:04:03 2012 +0200
+++ b/hgext/obsolete.py Tue Aug 07 15:05:04 2012 +0200
@@ -39,11 +39,7 @@
"""
-import sys
-from mercurial.i18n import _
-
-import json
from mercurial import util
@@ -53,17 +49,19 @@
except ImportError:
raise util.Abort('Obsolete extension requires Mercurial 2.3 (or later)')
+import sys
+from mercurial.i18n import _
+from mercurial import cmdutil
+from mercurial import commands
from mercurial import context
-from mercurial import revset
-from mercurial import scmutil
-from mercurial import extensions
from mercurial import discovery
from mercurial import error
-from mercurial import commands
+from mercurial import extensions
from mercurial import phases
+from mercurial import revset
+from mercurial import scmutil
+from mercurial import templatekw
from mercurial.node import bin, short, nullid
-from mercurial import cmdutil
-from mercurial import templatekw
# This extension hold the following code
#
@@ -945,6 +943,8 @@
# Code related to detection and management of older legacy format never
# handled by core
+import json
+
@eh.reposetup
def _checkoldobsolete(ui, repo):
"""Detect that a repo still carry some old obsolete format