This is an archive of the discontinued Mercurial Phabricator instance.

wait-on-file: don't quote arithmetic argument
ClosedPublic

Authored by marmoute on Apr 15 2020, 3:07 PM.

Details

Summary

This is unnecessary and Mac OS X choke on them.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

marmoute created this revision.Apr 15 2020, 3:07 PM
mharbison72 accepted this revision.Apr 15 2020, 6:10 PM
mharbison72 added a subscriber: mharbison72.

I couldn't reproduce the problem on 10.14 with or without this. But I can confirm that it appears to fix the issue on MSYS.

--- g:/Users/test/projects/hg-default-x86_64/Win7_x86_64_hg_tests/build/tests/test-persistent-nodemap.t
+++ g:/Users/test/projects/hg-default-x86_64/Win7_x86_64_hg_tests/build/tests/test-persistent-nodemap.t.err
@@ -354,22 +388,19 @@
   $ wait-on-file 20 sync-txn-pending && \
   > hg debugnodemap --metadata && \
   > wait-on-file 20 sync-txn-close sync-repo-read
+  \Users\test\projects\hg-default-x86_64\Win7_x86_64_hg_tests\build\tests/testlib/wait-on-file: line 16: ("20" * "600") / 180 : syntax error: operand expected (error token is ""20" * "600") / 180 ")
pulkit accepted this revision.Apr 16 2020, 4:10 AM
This revision is now accepted and ready to land.Apr 16 2020, 4:10 AM
This revision was automatically updated to reflect the committed changes.