Mercurial > hg
comparison hgext/blackbox.py @ 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 | 043948c84647 |
children | 0a638f37f2d2 |
comparison
equal
deleted
inserted
replaced
33133:bf1292c057ef | 33134:7dc090faa8a4 |
---|---|
47 registrar, | 47 registrar, |
48 ui as uimod, | 48 ui as uimod, |
49 util, | 49 util, |
50 ) | 50 ) |
51 | 51 |
52 cmdtable = {} | |
53 command = registrar.command(cmdtable) | |
54 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for | 52 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
55 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | 53 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
56 # be specifying the version(s) of Mercurial they are tested with, or | 54 # be specifying the version(s) of Mercurial they are tested with, or |
57 # leave the attribute unspecified. | 55 # leave the attribute unspecified. |
58 testedwith = 'ships-with-hg-core' | 56 testedwith = 'ships-with-hg-core' |
57 | |
58 cmdtable = {} | |
59 command = registrar.command(cmdtable) | |
60 | |
59 lastui = None | 61 lastui = None |
60 | 62 |
61 filehandles = {} | 63 filehandles = {} |
62 | 64 |
63 def _openlog(vfs): | 65 def _openlog(vfs): |