equal
deleted
inserted
replaced
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() |