hgext/largefiles/remotestore.py
changeset 49007 bac59722c5a3
parent 48966 6000f5b25c9b
equal deleted inserted replaced
49006:78911231ed33 49007:bac59722c5a3
     8 
     8 
     9 from mercurial.i18n import _
     9 from mercurial.i18n import _
    10 
    10 
    11 from mercurial import (
    11 from mercurial import (
    12     error,
    12     error,
    13     pycompat,
       
    14     util,
    13     util,
    15 )
    14 )
    16 
    15 
    17 from mercurial.utils import (
    16 from mercurial.utils import (
    18     stringutil,
    17     stringutil,
    50         )
    49         )
    51 
    50 
    52     def exists(self, hashes):
    51     def exists(self, hashes):
    53         return {
    52         return {
    54             h: s == 0
    53             h: s == 0
    55             for (h, s) in pycompat.iteritems(
    54             for (h, s) in self._stat(hashes).items()
    56                 self._stat(hashes)
    55             # dict-from-generator
    57             )  # dict-from-generator
       
    58         }
    56         }
    59 
    57 
    60     def sendfile(self, filename, hash):
    58     def sendfile(self, filename, hash):
    61         self.ui.debug(b'remotestore: sendfile(%s, %s)\n' % (filename, hash))
    59         self.ui.debug(b'remotestore: sendfile(%s, %s)\n' % (filename, hash))
    62         try:
    60         try: