diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py +++ b/hgext/largefiles/overrides.py @@ -1027,6 +1027,13 @@ def overridebailifchanged(orig, repo, *a 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) diff --git a/hgext/largefiles/uisetup.py b/hgext/largefiles/uisetup.py --- a/hgext/largefiles/uisetup.py +++ b/hgext/largefiles/uisetup.py @@ -123,6 +123,8 @@ def uisetup(ui): extensions.wrapfunction(cmdutil, 'bailifchanged', overrides.overridebailifchanged) + extensions.wrapfunction(cmdutil, 'postcommitstatus', + overrides.postcommitstatus) extensions.wrapfunction(scmutil, 'marktouched', overrides.scmutilmarktouched) diff --git a/tests/test-largefiles.t b/tests/test-largefiles.t --- a/tests/test-largefiles.t +++ b/tests/test-largefiles.t @@ -531,7 +531,7 @@ Test 3364 ! foo hmm.. no precommit invoked, but there is a postcommit?? $ hg ci -m "will not checkin" - nothing changed + nothing changed (1 missing files, see 'hg status') Invoking status postcommit hook ! foo C normal3