##// END OF EJS Templates
shelve: move createcmd next to _docreatecmd...
Boris Feld -
r39378:d52fa7dd default
parent child Browse files
Show More
@@ -323,12 +323,6 def _aborttransaction(repo):
323 323 narrowspec.restorebackup(repo, narrowspecbackupname)
324 324 repo.dirstate.restorebackup(None, dirstatebackupname)
325 325
326 def createcmd(ui, repo, pats, opts):
327 """subcommand that creates a new shelve"""
328 with repo.wlock():
329 cmdutil.checkunfinished(repo)
330 return _docreatecmd(ui, repo, pats, opts)
331
332 326 def getshelvename(repo, parent, opts):
333 327 """Decide on the name this shelve is going to have"""
334 328 def gennames():
@@ -430,6 +424,12 def _includeunknownfiles(repo, pats, opt
430 424 def _finishshelve(repo):
431 425 _aborttransaction(repo)
432 426
427 def createcmd(ui, repo, pats, opts):
428 """subcommand that creates a new shelve"""
429 with repo.wlock():
430 cmdutil.checkunfinished(repo)
431 return _docreatecmd(ui, repo, pats, opts)
432
433 433 def _docreatecmd(ui, repo, pats, opts):
434 434 wctx = repo[None]
435 435 parents = wctx.parents()
General Comments 0
You need to be logged in to leave comments. Login now