diff -r 31c9e2a702d1 -r 106f89299da6 mercurial/bundlerepo.py --- 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