# HG changeset patch # User Anton Shestakov # Date 1660201866 -14400 # Node ID 6f865bfc5fb855c4bafe3f7cd37c49823567ba31 # Parent a649e0e36de79c0b001f482500d269aaa4fca512 exthelper: update examples and docstrings from the upstream version diff -r a649e0e36de7 -r 6f865bfc5fb8 hgext3rd/evolve/exthelper.py --- a/hgext3rd/evolve/exthelper.py Thu Aug 11 11:08:45 2022 +0400 +++ b/hgext3rd/evolve/exthelper.py Thu Aug 11 11:11:06 2022 +0400 @@ -153,7 +153,7 @@ c(ui) def finalextsetup(self, ui): - """Method to be used as a the extension extsetup + """Method to be used as the extension extsetup The following operations belong here: @@ -199,7 +199,7 @@ @eh.uisetup def setupbabar(ui): - print 'this is uisetup!' + print('this is uisetup!') """ self._uicallables.append(call) return call @@ -211,7 +211,7 @@ @eh.uipopulate def setupfoo(ui): - print 'this is uipopulate!' + print('this is uipopulate!') """ self._uipopulatecallables.append(call) return call @@ -223,7 +223,7 @@ @eh.extsetup def setupcelestine(ui): - print 'this is extsetup!' + print('this is extsetup!') """ self._extcallables.append(call) return call @@ -235,7 +235,7 @@ @eh.reposetup def setupzephir(ui, repo): - print 'this is reposetup!' + print('this is reposetup!') """ self._repocallables.append(call) return call @@ -292,8 +292,8 @@ example:: - @eh.function(discovery, 'checkheads') - def wrapfunction(orig, *args, **kwargs): + @eh.wrapfunction(discovery, 'checkheads') + def wrapcheckheads(orig, *args, **kwargs): ui.note('His head smashed in and his heart cut out') return orig(*args, **kwargs) """