Mercurial > hg
diff mercurial/commands.py @ 13903:a6c69abd91a0
merge with crew
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 06 Apr 2011 15:15:06 -0500 |
parents | a7cd0eee396b |
children | 6bc340940c18 |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Apr 06 15:14:51 2011 -0500 +++ b/mercurial/commands.py Wed Apr 06 15:15:06 2011 -0500 @@ -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]