hgext/largefiles/reposetup.py
changeset 45942 89a2afe31e82
parent 45106 a03c177a4679
child 46895 6085b7f1536d
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: