Mercurial > hg
comparison hgext/largefiles/reposetup.py @ 31410:86dfd31c0329
largefiles: don't use mutable default argument value
Caught by pylint.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 14 Mar 2017 23:49:10 -0700 |
parents | 3afde791dce1 |
children | a40e979b9d97 |
comparison
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) |