Mercurial > hg
comparison hgext/mq.py @ 50900:a99e62dae4c8
mq: use sysstr to check for attribute presence
We do not need bytes here.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 30 Aug 2023 12:38:02 +0200 |
parents | 0ca8dc8a135f |
children | d718eddf01d9 |
comparison
equal
deleted
inserted
replaced
50899:d28cc52e2c0f | 50900:a99e62dae4c8 |
---|---|
4184 | 4184 |
4185 repo._phasedefaults.append(mqphasedefaults) | 4185 repo._phasedefaults.append(mqphasedefaults) |
4186 | 4186 |
4187 | 4187 |
4188 def mqimport(orig, ui, repo, *args, **kwargs): | 4188 def mqimport(orig, ui, repo, *args, **kwargs): |
4189 if util.safehasattr(repo, b'abortifwdirpatched') and not kwargs.get( | 4189 if util.safehasattr(repo, 'abortifwdirpatched') and not kwargs.get( |
4190 'no_commit', False | 4190 'no_commit', False |
4191 ): | 4191 ): |
4192 repo.abortifwdirpatched( | 4192 repo.abortifwdirpatched( |
4193 _(b'cannot import over an applied patch'), kwargs.get('force') | 4193 _(b'cannot import over an applied patch'), kwargs.get('force') |
4194 ) | 4194 ) |