# HG changeset patch # User Anton Shestakov # Date 1676983912 -14400 # Node ID c37754bb02d41d5ad441b067a9ddb137ccea9e07 # Parent 5062ace47b9e8cfb1c5ba73f5d5e974c352d1dc5 topic: rename presplitupdatetopic() to wrappresplitupdate() This makes it consistent with other functions that are used as an argument to extensions.wrapfunction(). Also, more generic name allows to do more things than just updating topic (like updating topic namespace as well). diff -r 5062ace47b9e -r c37754bb02d4 hgext3rd/topic/__init__.py --- a/hgext3rd/topic/__init__.py Sun Feb 12 17:20:47 2023 +0400 +++ b/hgext3rd/topic/__init__.py Tue Feb 21 16:51:52 2023 +0400 @@ -470,7 +470,7 @@ try: evolve = extensions.find(b'evolve') extensions.wrapfunction(evolve.rewriteutil, "presplitupdate", - presplitupdatetopic) + wrappresplitupdate) except (KeyError, AttributeError): pass @@ -1604,7 +1604,7 @@ ## preserve topic during split -def presplitupdatetopic(original, repo, ui, prev, ctx): +def wrappresplitupdate(original, repo, ui, prev, ctx): # Save topic of revision topic = None if util.safehasattr(ctx, 'topic'):