# HG changeset patch # User victory.bedrosova # Date 1611226867 -3600 # Node ID 5bec80ce92ae32b6e271be3131dcfbd4cebbf918 # Parent 63f58969673f408bccf6fad546749aab805fb6cb from trunk: fixed tests for recent hg versions diff -r 63f58969673f -r 5bec80ce92ae mercurial-common/src/python/load-commands-command.py --- a/mercurial-common/src/python/load-commands-command.py Tue Jan 19 15:35:29 2021 +0300 +++ b/mercurial-common/src/python/load-commands-command.py Thu Jan 21 12:01:07 2021 +0100 @@ -46,10 +46,12 @@ #so here goes command registration and options cmdtable = { - "CMD": (load_commands_command, [], " OUTPUT_FILE") + b"CMD": (load_commands_command, [], b" OUTPUT_FILE") } -commands.norepo += " CMD" +load_commands_command.norepo = True +load_commands_command.optionalrepo = False +load_commands_command.inferrepo = False testedwith = '2.2.2' buglink = "upsource-support@jetbrains.com" diff -r 63f58969673f -r 5bec80ce92ae mercurial-common/src/python/load-substates-command-46.py --- a/mercurial-common/src/python/load-substates-command-46.py Tue Jan 19 15:35:29 2021 +0300 +++ b/mercurial-common/src/python/load-substates-command-46.py Thu Jan 21 12:01:07 2021 +0100 @@ -141,7 +141,7 @@ #so here goes command registration and options cmdtable = { - "load-substates": (load_substates_command, [ ], " [options] OUTPUT_FILE") + b"load-substates": (load_substates_command, [ ], b" [options] OUTPUT_FILE") } load_substates_command.norepo = False diff -r 63f58969673f -r 5bec80ce92ae mercurial-common/src/python/load-substates-command.py --- a/mercurial-common/src/python/load-substates-command.py Tue Jan 19 15:35:29 2021 +0300 +++ b/mercurial-common/src/python/load-substates-command.py Thu Jan 21 12:01:07 2021 +0100 @@ -140,7 +140,7 @@ #so here goes command registration and options cmdtable = { - "load-substates": (load_substates_command, [ ], " [options] OUTPUT_FILE") + b"load-substates": (load_substates_command, [ ], b" [options] OUTPUT_FILE") } load_substates_command.norepo = False diff -r 63f58969673f -r 5bec80ce92ae mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/BaseCommandTest.java --- a/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/BaseCommandTest.java Tue Jan 19 15:35:29 2021 +0300 +++ b/mercurial-tests/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/BaseCommandTest.java Thu Jan 21 12:01:07 2021 +0100 @@ -39,8 +39,8 @@ assertTrue(cl.getCommandLineString().endsWith(" \"param with spaces\" \"param with quote \\\" rm -rf /\"")); assertTrue(cl.toGeneralCommandLine().getCommandLineString().endsWith(" \"param with spaces\" \"param with quote \\\" rm -rf /\"")); } else { - assertTrue(cl.getCommandLineString().endsWith(" param with spaces param with quote \" rm -rf /")); - assertTrue(cl.toGeneralCommandLine().getCommandLineString().endsWith(" param with spaces param with quote \" rm -rf /")); + assertTrue(cl.getCommandLineString().endsWith(" \"param with spaces\" \"param with quote \" rm -rf /\"")); + assertTrue(cl.toGeneralCommandLine().getCommandLineString().endsWith(" \"param with spaces\" \"param with quote \" rm -rf /\"")); } }