diff -r 730b769fb634 -r 8ab0640c3090 mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py Mon Dec 24 13:26:13 2012 +0100 +++ b/mercurial/bundlerepo.py Fri Dec 28 11:16:01 2012 +0100 @@ -347,7 +347,7 @@ os.unlink(bundlename) except OSError: pass - return other, [], other.close + return repo, [], other.close bundle = None bundlerepo = None