hgext/largefiles/basestore.py
changeset 19003 ad993cb7bbb1
parent 18999 c1b5f9c4d989
child 19007 266b5fb72f26
equal deleted inserted replaced
19002:5083baa6cbf8 19003:ad993cb7bbb1
    75             try:
    75             try:
    76                 hhash = self._getfile(tmpfile, filename, hash)
    76                 hhash = self._getfile(tmpfile, filename, hash)
    77             except StoreError, err:
    77             except StoreError, err:
    78                 ui.warn(err.longmessage())
    78                 ui.warn(err.longmessage())
    79                 hhash = ""
    79                 hhash = ""
    80             tmpfile.close() # has probably already been closed!
    80             tmpfile.close()
    81 
    81 
    82             if hhash != hash:
    82             if hhash != hash:
    83                 if hhash != "":
    83                 if hhash != "":
    84                     ui.warn(_('%s: data corruption (expected %s, got %s)\n')
    84                     ui.warn(_('%s: data corruption (expected %s, got %s)\n')
    85                             % (filename, hash, hhash))
    85                             % (filename, hash, hhash))