diff --git a/mercurial/commands.py b/mercurial/commands.py
index a80464e85ddd27e1e8e9209bbf597724214a23de_bWVyY3VyaWFsL2NvbW1hbmRzLnB5..70f1a84d07940ae07cf991ce7a7f6cd4ba597dc6_bWVyY3VyaWFsL2NvbW1hbmRzLnB5 100644
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -6209,7 +6209,7 @@
        prevents from deciding exact order of them, for safety.
     """
     with repo.wlock():
-        return shelvemod._dounshelve(ui, repo, *shelved, **opts)
+        return shelvemod.dounshelve(ui, repo, *shelved, **opts)
 
 @command('update|up|checkout|co',
     [('C', 'clean', None, _('discard uncommitted changes (no backup)')),
diff --git a/mercurial/shelve.py b/mercurial/shelve.py
index a80464e85ddd27e1e8e9209bbf597724214a23de_bWVyY3VyaWFsL3NoZWx2ZS5weQ==..70f1a84d07940ae07cf991ce7a7f6cd4ba597dc6_bWVyY3VyaWFsL3NoZWx2ZS5weQ== 100644
--- a/mercurial/shelve.py
+++ b/mercurial/shelve.py
@@ -845,7 +845,7 @@
         hint = _("run hg status to see which files are missing")
         raise error.Abort(m, hint=hint)
 
-def _dounshelve(ui, repo, *shelved, **opts):
+def dounshelve(ui, repo, *shelved, **opts):
     opts = pycompat.byteskwargs(opts)
     abortf = opts.get('abort')
     continuef = opts.get('continue')