##// END OF EJS Templates
largefiles: report the missing file count after a commit that does nothing...
Matt Harbison -
r27944:4511e8da stable
parent child Browse files
Show More
@@ -1027,6 +1027,13 b' def overridebailifchanged(orig, repo, *a'
1027 if s.modified or s.added or s.removed or s.deleted:
1027 if s.modified or s.added or s.removed or s.deleted:
1028 raise error.Abort(_('uncommitted changes'))
1028 raise error.Abort(_('uncommitted changes'))
1029
1029
1030 def postcommitstatus(orig, repo, *args, **kwargs):
1031 repo.lfstatus = True
1032 try:
1033 return orig(repo, *args, **kwargs)
1034 finally:
1035 repo.lfstatus = False
1036
1030 def cmdutilforget(orig, ui, repo, match, prefix, explicitonly):
1037 def cmdutilforget(orig, ui, repo, match, prefix, explicitonly):
1031 normalmatcher = composenormalfilematcher(match, repo[None].manifest())
1038 normalmatcher = composenormalfilematcher(match, repo[None].manifest())
1032 bad, forgot = orig(ui, repo, normalmatcher, prefix, explicitonly)
1039 bad, forgot = orig(ui, repo, normalmatcher, prefix, explicitonly)
@@ -123,6 +123,8 b' def uisetup(ui):'
123 extensions.wrapfunction(cmdutil, 'bailifchanged',
123 extensions.wrapfunction(cmdutil, 'bailifchanged',
124 overrides.overridebailifchanged)
124 overrides.overridebailifchanged)
125
125
126 extensions.wrapfunction(cmdutil, 'postcommitstatus',
127 overrides.postcommitstatus)
126 extensions.wrapfunction(scmutil, 'marktouched',
128 extensions.wrapfunction(scmutil, 'marktouched',
127 overrides.scmutilmarktouched)
129 overrides.scmutilmarktouched)
128
130
@@ -531,7 +531,7 b' Test 3364'
531 ! foo
531 ! foo
532 hmm.. no precommit invoked, but there is a postcommit??
532 hmm.. no precommit invoked, but there is a postcommit??
533 $ hg ci -m "will not checkin"
533 $ hg ci -m "will not checkin"
534 nothing changed
534 nothing changed (1 missing files, see 'hg status')
535 Invoking status postcommit hook
535 Invoking status postcommit hook
536 ! foo
536 ! foo
537 C normal3
537 C normal3
General Comments 0
You need to be logged in to leave comments. Login now