Mercurial > hg-stable
changeset 52189:7c1d7edff91b stable
windows: work around argument size limitation in test-bookmarks-pushpull.t
Apparently, we need to got through MSYS for such a long argument to be accepted.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 11 Nov 2024 16:41:16 +0100 |
parents | 2cdd3e85abf7 |
children | 02da7e767065 |
files | tests/test-bookmarks-pushpull.t |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-bookmarks-pushpull.t Mon Nov 11 12:52:53 2024 +0100 +++ b/tests/test-bookmarks-pushpull.t Mon Nov 11 16:41:16 2024 +0100 @@ -1155,20 +1155,21 @@ =============================================== #if b2-binary +(use `sh -c` as Windows struggle with the long argument) >>> with open('longname', 'w') as f: ... f.write('wat' * 100) and None - $ hg book `cat longname` - $ hg push -B `cat longname` ../unchanged-b + $ sh -c "hg book `cat longname`" + $ sh -c "hg push -B `cat longname` ../unchanged-b" pushing to ../unchanged-b searching for changes no changes found exporting bookmark (wat){100} (re) [1] - $ hg -R ../unchanged-b book --delete `cat longname` + $ sh -c "hg -R ../unchanged-b book --delete `cat longname`" Test again but forcing bundle2 exchange to make sure that doesn't regress. - $ hg push -B `cat longname` ../unchanged-b --config devel.legacy.exchange=bundle1 + $ sh -c "hg push -B `cat longname` ../unchanged-b --config devel.legacy.exchange=bundle1" pushing to ../unchanged-b searching for changes no changes found