mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
py3: convert key to str to make kwargs.pop work in mq
The keys are passed here and there as unicodes and our transformer make things bytes. Due to that, mq was not poped and this results in error on Py3. Here we abuse r'' to make that str on Python 3.
This commit is contained in:
parent
c3219cc9ed
commit
60e05dd544
@ -3540,7 +3540,7 @@ def mqcommand(orig, ui, repo, *args, **kwargs):
|
||||
"""Add --mq option to operate on patch repository instead of main"""
|
||||
|
||||
# some commands do not like getting unknown options
|
||||
mq = kwargs.pop('mq', None)
|
||||
mq = kwargs.pop(r'mq', None)
|
||||
|
||||
if not mq:
|
||||
return orig(ui, repo, *args, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user