##// END OF EJS Templates
py3: handle keyword arguments in hgext/shelve.py...
Pulkit Goyal -
r35006:aad6b9fd default
parent child Browse files
Show More
@@ -43,6 +43,7 b' from mercurial import ('
43 43 node as nodemod,
44 44 patch,
45 45 phases,
46 pycompat,
46 47 registrar,
47 48 repair,
48 49 scmutil,
@@ -380,7 +381,7 b' def getcommitfunc(extra, interactive, ed'
380 381 editor_ = False
381 382 if editor:
382 383 editor_ = cmdutil.getcommiteditor(editform='shelve.shelve',
383 **opts)
384 **pycompat.strkwargs(opts))
384 385 with repo.ui.configoverride(overrides):
385 386 return repo.commit(message, shelveuser, opts.get('date'),
386 387 match, editor=editor_, extra=extra)
@@ -389,6 +390,7 b' def getcommitfunc(extra, interactive, ed'
389 390 repo.mq.checkapplied = saved
390 391
391 392 def interactivecommitfunc(ui, repo, *pats, **opts):
393 opts = pycompat.byteskwargs(opts)
392 394 match = scmutil.match(repo['.'], pats, {})
393 395 message = opts['message']
394 396 return commitfunc(ui, repo, message, match, opts)
@@ -465,7 +467,7 b' def _docreatecmd(ui, repo, pats, opts):'
465 467 else:
466 468 node = cmdutil.dorecord(ui, repo, commitfunc, None,
467 469 False, cmdutil.recordfilter, *pats,
468 **opts)
470 **pycompat.strkwargs(opts))
469 471 if not node:
470 472 _nothingtoshelvemessaging(ui, repo, pats, opts)
471 473 return 1
@@ -852,6 +854,7 b' def unshelve(ui, repo, *shelved, **opts)'
852 854 return _dounshelve(ui, repo, *shelved, **opts)
853 855
854 856 def _dounshelve(ui, repo, *shelved, **opts):
857 opts = pycompat.byteskwargs(opts)
855 858 abortf = opts.get('abort')
856 859 continuef = opts.get('continue')
857 860 if not abortf and not continuef:
@@ -1010,6 +1013,7 b' def shelvecmd(ui, repo, *pats, **opts):'
1010 1013 To delete specific shelved changes, use ``--delete``. To delete
1011 1014 all shelved changes, use ``--cleanup``.
1012 1015 '''
1016 opts = pycompat.byteskwargs(opts)
1013 1017 allowables = [
1014 1018 ('addremove', {'create'}), # 'create' is pseudo action
1015 1019 ('unknown', {'create'}),
General Comments 0
You need to be logged in to leave comments. Login now