Show More
@@ -320,6 +320,14 b' def getcommitfunc(extra, interactive, ed' | |||
|
320 | 320 | |
|
321 | 321 | return interactivecommitfunc if interactive else commitfunc |
|
322 | 322 | |
|
323 | def _nothingtoshelvemessaging(ui, repo, pats, opts): | |
|
324 | stat = repo.status(match=scmutil.match(repo[None], pats, opts)) | |
|
325 | if stat.deleted: | |
|
326 | ui.status(_("nothing changed (%d missing files, see " | |
|
327 | "'hg status')\n") % len(stat.deleted)) | |
|
328 | else: | |
|
329 | ui.status(_("nothing changed\n")) | |
|
330 | ||
|
323 | 331 | def _docreatecmd(ui, repo, pats, opts): |
|
324 | 332 | wctx = repo[None] |
|
325 | 333 | parents = wctx.parents() |
@@ -369,12 +377,7 b' def _docreatecmd(ui, repo, pats, opts):' | |||
|
369 | 377 | node = cmdutil.dorecord(ui, repo, commitfunc, None, |
|
370 | 378 | False, cmdutil.recordfilter, *pats, **opts) |
|
371 | 379 | if not node: |
|
372 | stat = repo.status(match=scmutil.match(repo[None], pats, opts)) | |
|
373 | if stat.deleted: | |
|
374 | ui.status(_("nothing changed (%d missing files, see " | |
|
375 | "'hg status')\n") % len(stat.deleted)) | |
|
376 | else: | |
|
377 | ui.status(_("nothing changed\n")) | |
|
380 | _nothingtoshelvemessaging(ui, repo, pats, opts) | |
|
378 | 381 | return 1 |
|
379 | 382 | |
|
380 | 383 | bases = list(mutableancestors(repo[node])) |
General Comments 0
You need to be logged in to leave comments.
Login now