1. Pierre-Yves David
  2. mutable-history

Commits

Pierre-Yves David  committed 6cff548

obsolete: reorder import

  • Participants
  • Parent commits b1b7b5e
  • Branches default

Comments (0)

Files changed (1)

File hgext/obsolete.py

View file
 
 """
 
-import sys
 
-from mercurial.i18n import _
-
-import json
 
 from mercurial import util
 
 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 discovery
+from mercurial import error
+from mercurial import extensions
+from mercurial import phases
 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 phases
+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
 #
 # 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