Mercurial > evolve
diff hgext3rd/topic/__init__.py @ 6417:c37754bb02d4 stable
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).
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 21 Feb 2023 16:51:52 +0400 |
parents | 5fcb0cec5fe3 |
children | 50c4ed02ac6d |
line wrap: on
line diff
--- 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'):