mercurial/commands.py
changeset 1366 136920d13fc2
parent 1354 8cf364c65425
child 1373 965d1db5c95d
equal deleted inserted replaced
1365:74cf45f8bc19 1366:136920d13fc2
   566                 break
   566                 break
   567             f.write(z.compress(chunk))
   567             f.write(z.compress(chunk))
   568         f.write(z.flush())
   568         f.write(z.flush())
   569     except:
   569     except:
   570         os.unlink(fname)
   570         os.unlink(fname)
       
   571         raise
   571 
   572 
   572 def cat(ui, repo, file1, *pats, **opts):
   573 def cat(ui, repo, file1, *pats, **opts):
   573     """output the latest or given revisions of files"""
   574     """output the latest or given revisions of files"""
   574     mf = {}
   575     mf = {}
   575     if opts['rev']:
   576     if opts['rev']: