Updates for Mercurial 3.8(?) API compatibility, which broadly broke extensions by forcing @commands decoration.
Copyright (c) 2007-2016 Dmitriy Morozov <dmitriy@mrzv.org>. All rights reserved.Redistribution and use in source and binary forms, with or without modification,are permitted provided that the following conditions are met:(1) Redistributions of source code must retain the above copyright notice, thislist of conditions and the following disclaimer.(2) Redistributions in binary form must reproduce the above copyright notice,this list of conditions and the following disclaimer in the documentation and/orother materials provided with the distribution.(3) Neither the name of the copyright holder nor the names of its contributorsmay be used to endorse or promote products derived from this software withoutspecific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ANDANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIEDWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FORANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ONANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THISSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.You are under no obligation whatsoever to provide any bug fixes, patches, orupgrades to the features, functionality or performance of the source code("Enhancements") to anyone; however, if you choose to make your Enhancementsavailable either publicly, or directly to the author of this software, withoutimposing a separate written license agreement for such Enhancements, then youhereby grant the following license: a non-exclusive, royalty-free perpetuallicense to install, use, modify, prepare derivative works, incorporate intoother computer software, distribute, and sublicense such enhancements orderivative works thereof, in binary and source code form.