hgext/largefiles/localstore.py
changeset 19002 5083baa6cbf8
parent 19000 eaf146e811a4
child 19003 ad993cb7bbb1
equal deleted inserted replaced
19001:2a35296a6304 19002:5083baa6cbf8
    43         fd = open(path, 'rb')
    43         fd = open(path, 'rb')
    44         try:
    44         try:
    45             return lfutil.copyandhash(fd, tmpfile)
    45             return lfutil.copyandhash(fd, tmpfile)
    46         finally:
    46         finally:
    47             fd.close()
    47             fd.close()
       
    48             tmpfile.close()
    48 
    49 
    49     def _verifyfile(self, cctx, cset, contents, standin, verified):
    50     def _verifyfile(self, cctx, cset, contents, standin, verified):
    50         filename = lfutil.splitstandin(standin)
    51         filename = lfutil.splitstandin(standin)
    51         if not filename:
    52         if not filename:
    52             return False
    53             return False