changeset 33134:7dc090faa8a4

blackbox: minor code reordering The version declaration should come first in my opinion. This will help gather the command table with the config table.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 17 Jun 2017 13:41:28 +0200
parents bf1292c057ef
children 0a638f37f2d2
files hgext/blackbox.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 = {}