diff -r 38373da1af02 -r 5f8282f368b2 hgext/shelve.py --- a/hgext/shelve.py Wed Jun 06 01:10:01 2018 +0200 +++ b/hgext/shelve.py Wed Jun 06 01:46:37 2018 +0200 @@ -463,7 +463,7 @@ name = getshelvename(repo, parent, opts) activebookmark = _backupactivebookmark(repo) - extra = {} + extra = {'internal': 'shelve'} if includeunknown: _includeunknownfiles(repo, pats, opts, extra) @@ -751,7 +751,8 @@ return tmpwctx, addedbefore ui.status(_("temporarily committing pending changes " "(restore with 'hg unshelve --abort')\n")) - commitfunc = getcommitfunc(extra=None, interactive=False, + extra = {'internal': 'shelve'} + commitfunc = getcommitfunc(extra=extra, interactive=False, editor=False) tempopts = {} tempopts['message'] = "pending changes temporary commit"