Skip to content
Snippets Groups Projects
Commit 4511e8da authored by Matt Harbison's avatar Matt Harbison
Browse files

largefiles: report the missing file count after a commit that does nothing

This is the same warning that is printed for normal files.
parent 02c5f8ad
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -123,6 +123,8 @@
extensions.wrapfunction(cmdutil, 'bailifchanged',
overrides.overridebailifchanged)
extensions.wrapfunction(cmdutil, 'postcommitstatus',
overrides.postcommitstatus)
extensions.wrapfunction(scmutil, 'marktouched',
overrides.scmutilmarktouched)
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment