##// END OF EJS Templates
largefiles: introduce "_lfcommithooks" to abstract pre-committing procedures...
FUJIWARA Katsunori -
r23186:6de61d0b default
parent child Browse files
Show More
@@ -262,7 +262,8 b' def reposetup(ui, repo):'
262
262
263 wlock = self.wlock()
263 wlock = self.wlock()
264 try:
264 try:
265 match = lfutil.updatestandinsbymatch(self, match)
265 lfcommithook = self._lfcommithooks[-1]
266 match = lfcommithook(self, match)
266 result = orig(text=text, user=user, date=date, match=match,
267 result = orig(text=text, user=user, date=date, match=match,
267 force=force, editor=editor, extra=extra)
268 force=force, editor=editor, extra=extra)
268 return result
269 return result
@@ -338,6 +339,10 b' def reposetup(ui, repo):'
338
339
339 repo.__class__ = lfilesrepo
340 repo.__class__ = lfilesrepo
340
341
342 # stack of hooks being executed before committing.
343 # only last element ("_lfcommithooks[-1]") is used for each committing.
344 repo._lfcommithooks = [lfutil.updatestandinsbymatch]
345
341 def prepushoutgoinghook(local, remote, outgoing):
346 def prepushoutgoinghook(local, remote, outgoing):
342 if outgoing.missing:
347 if outgoing.missing:
343 toupload = set()
348 toupload = set()
General Comments 0
You need to be logged in to leave comments. Login now