mercurial/commands.py
changeset 515 03f27b1381f9
parent 513 2ab152e45de4
child 516 873228c2f6cf
equal deleted inserted replaced
514:874e577e332e 515:03f27b1381f9
   310 
   310 
   311         if not opts['noupdate']:
   311         if not opts['noupdate']:
   312             update(ui, repo)
   312             update(ui, repo)
   313 
   313 
   314         success = True
   314         success = True
   315         
   315 
   316     finally:
   316     finally:
   317         if created and not success:
   317         if created and not success:
   318             import shutil
   318             import shutil
   319             shutil.rmtree(dest, True)
   319             shutil.rmtree(dest, True)
   320     
   320 
   321 def commit(ui, repo, *files, **opts):
   321 def commit(ui, repo, *files, **opts):
   322     """commit the specified files or all outstanding changes"""
   322     """commit the specified files or all outstanding changes"""
   323     text = opts['text']
   323     text = opts['text']
   324     if not text and opts['logfile']:
   324     if not text and opts['logfile']:
   325         try: text = open(opts['logfile']).read()
   325         try: text = open(opts['logfile']).read()