##// END OF EJS Templates
patch: explicitely close input patch files when leaving...
Patrick Mezard -
r10203:6e26e3c2 stable
parent child Browse files
Show More
@@ -1126,6 +1126,8 b' def internalpatch(patchobj, ui, strip, c'
1126 finally:
1126 finally:
1127 if cwd:
1127 if cwd:
1128 os.chdir(curdir)
1128 os.chdir(curdir)
1129 if fp != patchobj:
1130 fp.close()
1129 if ret < 0:
1131 if ret < 0:
1130 raise PatchError
1132 raise PatchError
1131 return ret > 0
1133 return ret > 0
General Comments 0
You need to be logged in to leave comments. Login now