Commit 4a6aa178 authored by Aay Jay Chan's avatar Aay Jay Chan
Browse files

visdiff: remove `dodiffwrapper()`

Since b85e65f3a070 (visdiff: use qtlib.gettempdir(), 2010-05-08), temporary
files are cleaned up on application exit.  `dodiffwrapper()` doesn't do any
actual work, only logs a misleading message.
parent 5849ec046555
Pipeline #25173 failed with stage
in 20 minutes and 20 seconds
......@@ -451,19 +451,12 @@ def visual_diff(ui, repo, pats, ctx1a, ctx1b, ctx2, tool, mainapp=False,
except EnvironmentError:
pass # Ignore I/O errors or missing files
def dodiffwrapper():
try:
dodiff()
finally:
# cleanup happens atexit
ui.note(b'cleaning up temp directory\n')
if mainapp:
dodiffwrapper()
dodiff()
else:
# We are not the main application, so this must be done in a
# background thread
thread = threading.Thread(target=dodiffwrapper, name='visualdiff')
thread = threading.Thread(target=dodiff, name='visualdiff')
thread.setDaemon(True)
thread.start()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment