Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.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 | d1a55366d825 |
children | ce9696193175 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Sat Jan 23 20:51:17 2016 -0500 +++ b/mercurial/cmdutil.py Sat Jan 23 23:24:30 2016 -0500 @@ -2841,6 +2841,9 @@ elif repo.ui.verbose: repo.ui.write(_('committed changeset %d:%s\n') % (int(ctx), ctx)) +def postcommitstatus(repo, pats, opts): + return repo.status(match=scmutil.match(repo[None], pats, opts)) + def revert(ui, repo, ctx, parents, *pats, **opts): parent, p2 = parents node = ctx.node()