Mercurial > hg
comparison hgext/bookflow.py @ 50775:3c8a31be81df
wrapfunction: use sysstr instead of bytes as argument in "bookflow"
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 | Fri, 03 Feb 2023 04:10:00 +0100 |
parents | 6000f5b25c9b |
children | f4733654f144 |
comparison
equal
deleted
inserted
replaced
50774:caa0a25f7243 | 50775:3c8a31be81df |
---|---|
115 cur_id = repo.lookup(b'.') | 115 cur_id = repo.lookup(b'.') |
116 return cur_id == mark_id | 116 return cur_id == mark_id |
117 | 117 |
118 | 118 |
119 def uisetup(ui): | 119 def uisetup(ui): |
120 extensions.wrapfunction(bookmarks, b'update', bookmarks_update) | 120 extensions.wrapfunction(bookmarks, 'update', bookmarks_update) |
121 extensions.wrapfunction(bookmarks, b'addbookmarks', bookmarks_addbookmarks) | 121 extensions.wrapfunction(bookmarks, 'addbookmarks', bookmarks_addbookmarks) |
122 extensions.wrapcommand(commands.table, b'commit', commands_commit) | 122 extensions.wrapcommand(commands.table, b'commit', commands_commit) |
123 extensions.wrapcommand(commands.table, b'pull', commands_pull) | 123 extensions.wrapcommand(commands.table, b'pull', commands_pull) |
124 if not ui.configbool(MY_NAME, b'enable-branches'): | 124 if not ui.configbool(MY_NAME, b'enable-branches'): |
125 extensions.wrapcommand(commands.table, b'branch', commands_branch) | 125 extensions.wrapcommand(commands.table, b'branch', commands_branch) |