comparison tests/test-rebase-transaction.t @ 49995:27fd12eca557

transaction: quietly rollback if no other changes than temporary files If no actual change have been made, we don't really need to roll them back. We only have to cleanup some temporary files and it seems reasonable to do that quietly. This will help us to use the transaction in wider context¹ without impacting the user experience. [1] as in Python context managers that lives longer.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 14 Feb 2023 20:09:39 +0100
parents ac362d5a7893
children
comparison
equal deleted inserted replaced
49994:3128018e878b 49995:27fd12eca557
166 > EOF 166 > EOF
167 $ HGEDITOR=false hg --config ui.interactive=1 rebase --collapse -b D -d Z 167 $ HGEDITOR=false hg --config ui.interactive=1 rebase --collapse -b D -d Z
168 rebasing 1:112478962961 B "B" 168 rebasing 1:112478962961 B "B"
169 rebasing 3:26805aba1e60 C "C" 169 rebasing 3:26805aba1e60 C "C"
170 rebasing 5:f585351a92f8 D tip "D" 170 rebasing 5:f585351a92f8 D tip "D"
171 transaction abort!
172 rollback completed
173 abort: edit failed: false exited with status 1 171 abort: edit failed: false exited with status 1
174 [250] 172 [250]
175 $ hg tglog 173 $ hg tglog
176 o 5: D 174 o 5: D
177 | 175 |