comparison tests/test-rhg.t @ 48401:8960295b9246

rhg: only complain about poorly configured fallback when falling back Differential Revision: https://phab.mercurial-scm.org/D11751
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Thu, 11 Nov 2021 14:26:25 +0000
parents f8dc78716ad2
children 9cf5ac8c7109
comparison
equal deleted inserted replaced
48400:a71a2f72f5d8 48401:8960295b9246
166 166
167 [252] 167 [252]
168 $ rhg cat original --exclude="*.rs" 168 $ rhg cat original --exclude="*.rs"
169 original content 169 original content
170 170
171 $ FALLBACK_EXE="$RHG_FALLBACK_EXECUTABLE" 171 $ (unset RHG_FALLBACK_EXECUTABLE; rhg cat original --exclude="*.rs")
172 $ unset RHG_FALLBACK_EXECUTABLE
173 $ rhg cat original --exclude="*.rs"
174 abort: 'rhg.on-unsupported=fallback' without 'rhg.fallback-executable' set. 172 abort: 'rhg.on-unsupported=fallback' without 'rhg.fallback-executable' set.
175 [255] 173 [255]
176 $ RHG_FALLBACK_EXECUTABLE="$FALLBACK_EXE" 174
177 $ export RHG_FALLBACK_EXECUTABLE 175 $ (unset RHG_FALLBACK_EXECUTABLE; rhg cat original)
176 original content
178 177
179 $ rhg cat original --exclude="*.rs" --config rhg.fallback-executable=false 178 $ rhg cat original --exclude="*.rs" --config rhg.fallback-executable=false
180 [1] 179 [1]
181 180
182 $ rhg cat original --exclude="*.rs" --config rhg.fallback-executable=hg-non-existent 181 $ rhg cat original --exclude="*.rs" --config rhg.fallback-executable=hg-non-existent