changeset 1044:e7df2ef5064b

fixed extensions for recent hg versions, should fix tests
author victory.bedrosova
date Tue, 19 Jan 2021 21:35:53 +0100
parents 7378eb4a7e47
children 71d765469b2d
files mercurial-common/src/python/load-commands-command.py mercurial-common/src/python/load-substates-command-46.py mercurial-common/src/python/load-substates-command.py
diffstat 3 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial-common/src/python/load-commands-command.py	Wed Dec 16 13:25:58 2020 +0300
+++ b/mercurial-common/src/python/load-commands-command.py	Tue Jan 19 21:35:53 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_substates_command.norepo = True
+load_substates_command.optionalrepo = False
+load_substates_command.inferrepo = False
 
 testedwith = '2.2.2'
 buglink = "upsource-support@jetbrains.com"
--- a/mercurial-common/src/python/load-substates-command-46.py	Wed Dec 16 13:25:58 2020 +0300
+++ b/mercurial-common/src/python/load-substates-command-46.py	Tue Jan 19 21:35:53 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
@@ -149,6 +149,6 @@
 load_substates_command.inferrepo = False
 load_substates_command.intents = None
 
-testedwith = '4.7.2'
+testedwith = '5.6.1'
 buglink = "upsource-support@jetbrains.com"
 
--- a/mercurial-common/src/python/load-substates-command.py	Wed Dec 16 13:25:58 2020 +0300
+++ b/mercurial-common/src/python/load-substates-command.py	Tue Jan 19 21:35:53 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