comparison hgext/largefiles/reposetup.py @ 45942:89a2afe31e82

formating: upgrade to black 20.8b1 This required a couple of small tweaks to un-confuse black, but now it works. Big formatting changes come from: * Dramatically improved collection-splitting logic upstream * Black having a strong (correct IMO) opinion that """ is better than ''' Differential Revision: https://phab.mercurial-scm.org/D9430
author Augie Fackler <raf@durin42.com>
date Fri, 27 Nov 2020 17:03:29 -0500
parents a03c177a4679
children 6085b7f1536d
comparison
equal deleted inserted replaced
45941:346af7687c6f 45942:89a2afe31e82
358 return result 358 return result
359 359
360 # TODO: _subdirlfs should be moved into "lfutil.py", because 360 # TODO: _subdirlfs should be moved into "lfutil.py", because
361 # it is referred only from "lfutil.updatestandinsbymatch" 361 # it is referred only from "lfutil.updatestandinsbymatch"
362 def _subdirlfs(self, files, lfiles): 362 def _subdirlfs(self, files, lfiles):
363 ''' 363 """
364 Adjust matched file list 364 Adjust matched file list
365 If we pass a directory to commit whose only committable files 365 If we pass a directory to commit whose only committable files
366 are largefiles, the core commit code aborts before finding 366 are largefiles, the core commit code aborts before finding
367 the largefiles. 367 the largefiles.
368 So we do the following: 368 So we do the following:
369 For directories that only have largefiles as matches, 369 For directories that only have largefiles as matches,
370 we explicitly add the largefiles to the match list and remove 370 we explicitly add the largefiles to the match list and remove
371 the directory. 371 the directory.
372 In other cases, we leave the match list unmodified. 372 In other cases, we leave the match list unmodified.
373 ''' 373 """
374 actualfiles = [] 374 actualfiles = []
375 dirs = [] 375 dirs = []
376 regulars = [] 376 regulars = []
377 377
378 for f in files: 378 for f in files: