hgext/largefiles/reposetup.py
changeset 31410 86dfd31c0329
parent 30233 3afde791dce1
child 31740 a40e979b9d97
equal deleted inserted replaced
31409:dddc4812aa7a 31410:86dfd31c0329
   270 
   270 
   271         # Before commit, largefile standins have not had their
   271         # Before commit, largefile standins have not had their
   272         # contents updated to reflect the hash of their largefile.
   272         # contents updated to reflect the hash of their largefile.
   273         # Do that here.
   273         # Do that here.
   274         def commit(self, text="", user=None, date=None, match=None,
   274         def commit(self, text="", user=None, date=None, match=None,
   275                 force=False, editor=False, extra={}):
   275                 force=False, editor=False, extra=None):
       
   276             if extra is None:
       
   277                 extra = {}
   276             orig = super(lfilesrepo, self).commit
   278             orig = super(lfilesrepo, self).commit
   277 
   279 
   278             with self.wlock():
   280             with self.wlock():
   279                 lfcommithook = self._lfcommithooks[-1]
   281                 lfcommithook = self._lfcommithooks[-1]
   280                 match = lfcommithook(self, match)
   282                 match = lfcommithook(self, match)