mercurial/bundlerepo.py
branchstable
changeset 15091 106f89299da6
parent 14494 1ffeeb91c55d
child 15597 bc0778f5619a
--- a/mercurial/bundlerepo.py	Sun Sep 11 14:42:30 2011 +0200
+++ b/mercurial/bundlerepo.py	Wed Sep 14 13:51:50 2011 +0200
@@ -315,7 +315,8 @@
     common, incoming, rheads = tmp
     if not incoming:
         try:
-            os.unlink(bundlename)
+            if bundlename:
+                os.unlink(bundlename)
         except OSError:
             pass
         return other, [], other.close