diff mercurial/commands.py @ 1971:915b81a35e46

imported patch /home/thomas/fix-incoming-abortion4.patch
author Thomas Arendsen Hein <thomas@intevation.de>
date Sat, 18 Mar 2006 09:13:27 +0100
parents 119165543ce6
children ce127cb4ee6e
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -1811,7 +1811,7 @@ def incoming(ui, repo, source="default",
             ui.write("\n")
 
     if cleanup:
-        os.close(fd)
+        other.close()                   # explicit close for unlink
         os.unlink(cleanup)
 
 def init(ui, dest="."):