blackbox: minor code reordering
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 17 Jun 2017 13:41:28 +0200
changeset 33134 7dc090faa8a4
parent 33133 bf1292c057ef
child 33135 0a638f37f2d2
blackbox: minor code reordering The version declaration should come first in my opinion. This will help gather the command table with the config table.
hgext/blackbox.py
--- a/hgext/blackbox.py	Sun Jun 18 19:52:54 2017 +0200
+++ b/hgext/blackbox.py	Sat Jun 17 13:41:28 2017 +0200
@@ -49,13 +49,15 @@
     util,
 )
 
-cmdtable = {}
-command = registrar.command(cmdtable)
 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
 # be specifying the version(s) of Mercurial they are tested with, or
 # leave the attribute unspecified.
 testedwith = 'ships-with-hg-core'
+
+cmdtable = {}
+command = registrar.command(cmdtable)
+
 lastui = None
 
 filehandles = {}