tests: avoid a cascading failure on Windows stable
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 02 Dec 2023 00:34:44 -0500
branchstable
changeset 51148 1dd01023649d
parent 51147 4ed9efb25bc7
child 51149 e2632d9d1b6e
tests: avoid a cascading failure on Windows The `identify --debug` command here on Windows emits skip updating dirstate: identity mismatch because of the debug switch, which got captured and added to `.hgtags`, and then hijinx ensued. The point of `--debug` seemed to be to get the long hash, so just do that with templating. I have not idea if the message is indicating a problem- there seems to be many more of them in other tests that are not present on Linux.
tests/test-tags.t
--- a/tests/test-tags.t	Fri Dec 01 23:58:12 2023 -0500
+++ b/tests/test-tags.t	Sat Dec 02 00:34:44 2023 -0500
@@ -72,7 +72,7 @@
 
 Create local tag with long name:
 
-  $ T=`hg identify --debug --id`
+  $ T=`hg identify -r . -T '{node}'`
   $ hg tag -l "This is a local tag with a really long name!"
   $ hg tags
   tip                                0:acb14030fe0a