mercurial/commands.py
changeset 13899 a7cd0eee396b
parent 13893 1aea86673dee
child 13911 6bc340940c18
--- a/mercurial/commands.py	Wed Apr 06 15:26:49 2011 +0200
+++ b/mercurial/commands.py	Wed Apr 06 16:21:12 2011 +0200
@@ -894,7 +894,12 @@
 
     node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
     if not node:
-        ui.status(_("nothing changed\n"))
+        stat = repo.status(match=cmdutil.match(repo, pats, opts))
+        if stat[3]:
+            ui.status(_("nothing changed (%d missing files, see 'hg status')\n")
+                      % len(stat[3]))
+        else:
+            ui.status(_("nothing changed\n"))
         return 1
 
     ctx = repo[node]