diff tests/test-purge.t @ 49352:0cc5f74ff7f0 stable 6.1.4

purge: prevent a silly crash with --confirm --files if --files is passed, there was no directory to checks and `msg` was undefined. This is now fixed and tested.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 14 Jun 2022 11:26:18 +0200
parents e845537f6adb
children
line wrap: on
line diff
--- a/tests/test-purge.t	Wed Jun 08 19:15:58 2022 +0200
+++ b/tests/test-purge.t	Tue Jun 14 11:26:18 2022 +0200
@@ -350,4 +350,9 @@
   .hg
   .hgignore
 
+Test some --confirm case that ended crashing
+
+  $ hg purge --confirm
+  $ hg purge --confirm --all --files
+
   $ cd ..