##// END OF EJS Templates
commit: drop unused "vdirs" argument from repo.checkcommitpatterns()...
Martin von Zweigbergk -
r44111:f965b102 default
parent child Browse files
Show More
@@ -427,9 +427,7 b' def dorecord('
427 427
428 428 force = opts.get(b'force')
429 429 if not force:
430 vdirs = []
431 430 match = matchmod.badmatch(match, fail)
432 match.explicitdir = vdirs.append
433 431
434 432 status = repo.status(match=match)
435 433
@@ -457,7 +455,7 b' def dorecord('
457 455 raise error.Abort(dirtyreason)
458 456
459 457 if not force:
460 repo.checkcommitpatterns(wctx, vdirs, match, status, fail)
458 repo.checkcommitpatterns(wctx, match, status, fail)
461 459 diffopts = patch.difffeatureopts(
462 460 ui,
463 461 opts=opts,
@@ -1746,7 +1746,7 b' class ilocalrepositorymain(interfaceutil'
1746 1746 def currentwlock():
1747 1747 """Return the wlock if it's held or None."""
1748 1748
1749 def checkcommitpatterns(wctx, vdirs, match, status, fail):
1749 def checkcommitpatterns(wctx, match, status, fail):
1750 1750 pass
1751 1751
1752 1752 def commit(
@@ -2789,7 +2789,7 b' class localrepository(object):'
2789 2789
2790 2790 return fparent1
2791 2791
2792 def checkcommitpatterns(self, wctx, vdirs, match, status, fail):
2792 def checkcommitpatterns(self, wctx, match, status, fail):
2793 2793 """check for commit arguments that aren't committable"""
2794 2794 if match.isexact() or match.prefix():
2795 2795 matched = set(status.modified + status.added + status.removed)
@@ -2838,8 +2838,6 b' class localrepository(object):'
2838 2838 match = matchmod.always()
2839 2839
2840 2840 if not force:
2841 vdirs = []
2842 match.explicitdir = vdirs.append
2843 2841 match.bad = fail
2844 2842
2845 2843 # lock() for recent changelog (see issue4368)
@@ -2868,7 +2866,7 b' class localrepository(object):'
2868 2866
2869 2867 # make sure all explicit patterns are matched
2870 2868 if not force:
2871 self.checkcommitpatterns(wctx, vdirs, match, status, fail)
2869 self.checkcommitpatterns(wctx, match, status, fail)
2872 2870
2873 2871 cctx = context.workingcommitctx(
2874 2872 self, status, text, user, date, extra
General Comments 0
You need to be logged in to leave comments. Login now