hgext/largefiles/lfutil.py
changeset 46113 59fa3890d40a
parent 45942 89a2afe31e82
child 46780 6266d19556ad
equal deleted inserted replaced
46112:d6afa9c149c3 46113:59fa3890d40a
    13 import copy
    13 import copy
    14 import os
    14 import os
    15 import stat
    15 import stat
    16 
    16 
    17 from mercurial.i18n import _
    17 from mercurial.i18n import _
    18 from mercurial.node import hex
    18 from mercurial.node import (
       
    19     hex,
       
    20     nullid,
       
    21 )
    19 from mercurial.pycompat import open
    22 from mercurial.pycompat import open
    20 
    23 
    21 from mercurial import (
    24 from mercurial import (
    22     dirstate,
    25     dirstate,
    23     encoding,
    26     encoding,
    24     error,
    27     error,
    25     httpconnection,
    28     httpconnection,
    26     match as matchmod,
    29     match as matchmod,
    27     node,
       
    28     pycompat,
    30     pycompat,
    29     scmutil,
    31     scmutil,
    30     sparse,
    32     sparse,
    31     util,
    33     util,
    32     vfs as vfsmod,
    34     vfs as vfsmod,
   608         unit=_(b'revisions'),
   610         unit=_(b'revisions'),
   609         total=len(missing),
   611         total=len(missing),
   610     ) as progress:
   612     ) as progress:
   611         for i, n in enumerate(missing):
   613         for i, n in enumerate(missing):
   612             progress.update(i)
   614             progress.update(i)
   613             parents = [p for p in repo[n].parents() if p != node.nullid]
   615             parents = [p for p in repo[n].parents() if p != nullid]
   614 
   616 
   615             with lfstatus(repo, value=False):
   617             with lfstatus(repo, value=False):
   616                 ctx = repo[n]
   618                 ctx = repo[n]
   617 
   619 
   618             files = set(ctx.files())
   620             files = set(ctx.files())