Comments
Patch
@@ -319,12 +319,6 @@ def _aborttransaction(repo):
tr.abort()
repo.dirstate.restorebackup(None, backupname)
-def createcmd(ui, repo, pats, opts):
- """subcommand that creates a new shelve"""
- with repo.wlock():
- cmdutil.checkunfinished(repo)
- return _docreatecmd(ui, repo, pats, opts)
-
def getshelvename(repo, parent, opts):
"""Decide on the name this shelve is going to have"""
def gennames():
@@ -426,6 +420,12 @@ def _includeunknownfiles(repo, pats, opt
def _finishshelve(repo):
_aborttransaction(repo)
+def createcmd(ui, repo, pats, opts):
+ """subcommand that creates a new shelve"""
+ with repo.wlock():
+ cmdutil.checkunfinished(repo)
+ return _docreatecmd(ui, repo, pats, opts)
+
def _docreatecmd(ui, repo, pats, opts):
wctx = repo[None]
parents = wctx.parents()