comparison hgext/histedit.py @ 50781:0fbc0c978053

wrapfunction: use sysstr instead of bytes as argument in "histedit" 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:21:32 +0100
parents 22d7cb8174ef
children 18c8c18993f0
comparison
equal deleted inserted replaced
50780:534c0dadd210 50781:0fbc0c978053
2650 % b', '.join(short(x) for x in common_nodes) 2650 % b', '.join(short(x) for x in common_nodes)
2651 ) 2651 )
2652 return orig(ui, repo, nodelist, *args, **kwargs) 2652 return orig(ui, repo, nodelist, *args, **kwargs)
2653 2653
2654 2654
2655 extensions.wrapfunction(repair, b'strip', stripwrapper) 2655 extensions.wrapfunction(repair, 'strip', stripwrapper)
2656 2656
2657 2657
2658 def summaryhook(ui, repo): 2658 def summaryhook(ui, repo):
2659 state = histeditstate(repo) 2659 state = histeditstate(repo)
2660 if not state.inprogress(): 2660 if not state.inprogress():