##// 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 263 wlock = self.wlock()
264 264 try:
265 match = lfutil.updatestandinsbymatch(self, match)
265 lfcommithook = self._lfcommithooks[-1]
266 match = lfcommithook(self, match)
266 267 result = orig(text=text, user=user, date=date, match=match,
267 268 force=force, editor=editor, extra=extra)
268 269 return result
@@ -338,6 +339,10 b' def reposetup(ui, repo):'
338 339
339 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 346 def prepushoutgoinghook(local, remote, outgoing):
342 347 if outgoing.missing:
343 348 toupload = set()
General Comments 0
You need to be logged in to leave comments. Login now