hgext/largefiles/lfutil.py
changeset 18143 242d2f4ec01c
parent 17878 d1d0140287b8
child 18146 819c7e10d60d
equal deleted inserted replaced
18142:11d1a9143adb 18143:242d2f4ec01c
    34     def remove(list, unlink):
    34     def remove(list, unlink):
    35         wlock = repo.wlock()
    35         wlock = repo.wlock()
    36         try:
    36         try:
    37             if unlink:
    37             if unlink:
    38                 for f in list:
    38                 for f in list:
    39                     try:
    39                     util.unlinkpath(repo.wjoin(f), ignoremissing=True)
    40                         util.unlinkpath(repo.wjoin(f))
       
    41                     except OSError, inst:
       
    42                         if inst.errno != errno.ENOENT:
       
    43                             raise
       
    44             repo[None].forget(list)
    40             repo[None].forget(list)
    45         finally:
    41         finally:
    46             wlock.release()
    42             wlock.release()
    47     return remove(list, unlink=unlink)
    43     return remove(list, unlink=unlink)
    48 
    44