Show More
@@ -323,12 +323,6 def _aborttransaction(repo): | |||||
323 | narrowspec.restorebackup(repo, narrowspecbackupname) |
|
323 | narrowspec.restorebackup(repo, narrowspecbackupname) | |
324 | repo.dirstate.restorebackup(None, dirstatebackupname) |
|
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 | def getshelvename(repo, parent, opts): |
|
326 | def getshelvename(repo, parent, opts): | |
333 | """Decide on the name this shelve is going to have""" |
|
327 | """Decide on the name this shelve is going to have""" | |
334 | def gennames(): |
|
328 | def gennames(): | |
@@ -430,6 +424,12 def _includeunknownfiles(repo, pats, opt | |||||
430 | def _finishshelve(repo): |
|
424 | def _finishshelve(repo): | |
431 | _aborttransaction(repo) |
|
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 | def _docreatecmd(ui, repo, pats, opts): |
|
433 | def _docreatecmd(ui, repo, pats, opts): | |
434 | wctx = repo[None] |
|
434 | wctx = repo[None] | |
435 | parents = wctx.parents() |
|
435 | parents = wctx.parents() |
General Comments 0
You need to be logged in to leave comments.
Login now