# HG changeset patch # User Pierre-Yves David # Date 1344344704 -7200 # Node ID 6cff54825233c88addea0e218969cdb41f7e8f15 # Parent b1b7b5ef506a4e825d0790d7877c24d1f0a74875 obsolete: reorder import diff -r b1b7b5ef506a -r 6cff54825233 hgext/obsolete.py --- 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