diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -568,6 +568,7 @@ def bundle(ui, repo, fname, dest="defaul f.write(z.flush()) except: os.unlink(fname) + raise def cat(ui, repo, file1, *pats, **opts): """output the latest or given revisions of files"""