changeset 50797:4c6151b69085

wrapfunction: use sysstr instead of bytes as argument in "sqlitestore" This is as valid and simpler, it will help us to eventually get ride of `safehasattr`.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 10 Jul 2023 15:38:53 +0200
parents 7a50e1720f6d
children d9e22b39041a
files hgext/share.py hgext/sqlitestore.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/share.py	Mon Jul 10 19:32:17 2023 +0200
+++ b/hgext/share.py	Mon Jul 10 15:38:53 2023 +0200
@@ -162,10 +162,10 @@
 
 
 def extsetup(ui):
-    extensions.wrapcommand(commands.table, b'clone', clone)
     extensions.wrapfunction(bookmarks, '_getbkfile', getbkfile)
     extensions.wrapfunction(bookmarks.bmstore, '_recordchange', recordchange)
     extensions.wrapfunction(bookmarks.bmstore, '_writerepo', writerepo)
+    extensions.wrapcommand(commands.table, b'clone', clone)
 
 
 def _hassharedbookmarks(repo):
--- a/hgext/sqlitestore.py	Mon Jul 10 19:32:17 2023 +0200
+++ b/hgext/sqlitestore.py	Mon Jul 10 15:38:53 2023 +0200
@@ -1330,7 +1330,7 @@
 def extsetup(ui):
     localrepo.featuresetupfuncs.add(featuresetup)
     extensions.wrapfunction(
-        localrepo, b'newreporequirements', newreporequirements
+        localrepo, 'newreporequirements', newreporequirements
     )
     extensions.wrapfunction(localrepo, 'makefilestorage', makefilestorage)
     extensions.wrapfunction(localrepo, 'makemain', makemain)