# HG changeset patch # User Pierre-Yves David # Date 1676490428 -3600 # Node ID ebb8648483db50a4511ec79ce13d1cc1a388613c # Parent 927da152800cf1c52a2e7c9d2ebc0639a7065da8 rollback: show that the safety works in a associated test That test section is checking that --force is overcoming the safety check, however we did not check that the safety properly detect the situation. We now do for clarity. diff -r 927da152800c -r ebb8648483db tests/test-rollback.t --- a/tests/test-rollback.t Tue Feb 14 00:40:27 2023 +0100 +++ b/tests/test-rollback.t Wed Feb 15 20:47:08 2023 +0100 @@ -76,6 +76,10 @@ (activating bookmark bar) $ cat .hg/undo.branch ; echo test + $ hg rollback + abort: rollback of last commit while not checked out may lose data + (use -f to force) + [255] $ hg rollback -f repository tip rolled back to revision 1 (undo commit) $ hg id -n