Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 27943:02c5f8ad00ac stable
commit: factor the post commit status check into a cmdutil method
The largefiles extension needs to set lfstatus for this status call. Otherwise,
if a missing largefile is explicitly named, a confusing message is issued that
says the largefile wasn't found, followed by another that says nothing changed.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 23 Jan 2016 23:24:30 -0500 |
parents | f6d73c8756e2 |
children | 7cb7264cfd52 |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Jan 23 20:51:17 2016 -0500 +++ b/mercurial/commands.py Sat Jan 23 23:24:30 2016 -0500 @@ -1720,7 +1720,7 @@ node = cmdutil.commit(ui, repo, commitfunc, pats, opts) if not node: - stat = repo.status(match=scmutil.match(repo[None], pats, opts)) + stat = cmdutil.postcommitstatus(repo, pats, opts) if stat[3]: ui.status(_("nothing changed (%d missing files, see " "'hg status')\n") % len(stat[3]))