Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
27942:eb1135d5e688 | 27943:02c5f8ad00ac |
---|---|
2839 if repo.ui.debugflag: | 2839 if repo.ui.debugflag: |
2840 repo.ui.write(_('committed changeset %d:%s\n') % (int(ctx), ctx.hex())) | 2840 repo.ui.write(_('committed changeset %d:%s\n') % (int(ctx), ctx.hex())) |
2841 elif repo.ui.verbose: | 2841 elif repo.ui.verbose: |
2842 repo.ui.write(_('committed changeset %d:%s\n') % (int(ctx), ctx)) | 2842 repo.ui.write(_('committed changeset %d:%s\n') % (int(ctx), ctx)) |
2843 | 2843 |
2844 def postcommitstatus(repo, pats, opts): | |
2845 return repo.status(match=scmutil.match(repo[None], pats, opts)) | |
2846 | |
2844 def revert(ui, repo, ctx, parents, *pats, **opts): | 2847 def revert(ui, repo, ctx, parents, *pats, **opts): |
2845 parent, p2 = parents | 2848 parent, p2 = parents |
2846 node = ctx.node() | 2849 node = ctx.node() |
2847 | 2850 |
2848 mf = ctx.manifest() | 2851 mf = ctx.manifest() |