Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/overrides.py @ 27944:4511e8dac4c7 stable
largefiles: report the missing file count after a commit that does nothing
This is the same warning that is printed for normal files.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 23 Jan 2016 23:32:49 -0500 |
parents | 27f2f5c1d499 |
children | d3f1b7ee5e70 |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Sat Jan 23 23:24:30 2016 -0500 +++ b/hgext/largefiles/overrides.py Sat Jan 23 23:32:49 2016 -0500 @@ -1027,6 +1027,13 @@ if s.modified or s.added or s.removed or s.deleted: raise error.Abort(_('uncommitted changes')) +def postcommitstatus(orig, repo, *args, **kwargs): + repo.lfstatus = True + try: + return orig(repo, *args, **kwargs) + finally: + repo.lfstatus = False + def cmdutilforget(orig, ui, repo, match, prefix, explicitonly): normalmatcher = composenormalfilematcher(match, repo[None].manifest()) bad, forgot = orig(ui, repo, normalmatcher, prefix, explicitonly)