# HG changeset patch # User Matt Harbison # Date 1453609969 18000 # Node ID 4511e8dac4c798e5fed91e629aa9802b01c2b6c3 # Parent 02c5f8ad00ac2e3663a175b691ccce4a1f340c00 largefiles: report the missing file count after a commit that does nothing This is the same warning that is printed for normal files. diff -r 02c5f8ad00ac -r 4511e8dac4c7 hgext/largefiles/overrides.py --- 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) diff -r 02c5f8ad00ac -r 4511e8dac4c7 hgext/largefiles/uisetup.py --- a/hgext/largefiles/uisetup.py Sat Jan 23 23:24:30 2016 -0500 +++ b/hgext/largefiles/uisetup.py Sat Jan 23 23:32:49 2016 -0500 @@ -123,6 +123,8 @@ extensions.wrapfunction(cmdutil, 'bailifchanged', overrides.overridebailifchanged) + extensions.wrapfunction(cmdutil, 'postcommitstatus', + overrides.postcommitstatus) extensions.wrapfunction(scmutil, 'marktouched', overrides.scmutilmarktouched) diff -r 02c5f8ad00ac -r 4511e8dac4c7 tests/test-largefiles.t --- a/tests/test-largefiles.t Sat Jan 23 23:24:30 2016 -0500 +++ b/tests/test-largefiles.t Sat Jan 23 23:32:49 2016 -0500 @@ -531,7 +531,7 @@ ! 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