Moving the undodir into the checkout directory.
A %% in a dialogs will expand to the open file's path.