From 3f8807d95cb36a099dda455813d443017eb38367 Mon Sep 17 00:00:00 2001 From: RhodeCode Admin Date: Wed, 24 Jul 2024 09:46:05 +0200 Subject: [PATCH] fix: updated command list mapping for mercurial 6.5, after client upgrade a new command can be given which is clonebundles_manifest, we marked it explicit as pull command. Also added few more commands, fixes RCCE-111 --- rhodecode/lib/middleware/simplehg.py | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/rhodecode/lib/middleware/simplehg.py b/rhodecode/lib/middleware/simplehg.py index 95bd4e6b..5100f589 100644 --- a/rhodecode/lib/middleware/simplehg.py +++ b/rhodecode/lib/middleware/simplehg.py @@ -53,25 +53,31 @@ class SimpleHg(simplevcs.SimpleVCS): return repo_name.rstrip('/') _ACTION_MAPPING = { + 'between': 'pull', + 'branches': 'pull', + 'branchmap': 'pull', + 'capabilities': 'pull', 'changegroup': 'pull', 'changegroupsubset': 'pull', - 'getbundle': 'pull', - 'stream_out': 'pull', - 'listkeys': 'pull', - 'between': 'pull', - 'branchmap': 'pull', - 'branches': 'pull', + 'changesetdata': 'pull', 'clonebundles': 'pull', - 'capabilities': 'pull', + 'clonebundles_manifest': 'pull', 'debugwireargs': 'pull', + 'filedata': 'pull', + 'getbundle': 'pull', 'heads': 'pull', - 'lookup': 'pull', 'hello': 'pull', 'known': 'pull', + 'listkeys': 'pull', + 'lookup': 'pull', + 'manifestdata': 'pull', + 'narrow_widen': 'pull', + 'protocaps': 'pull', + 'stream_out': 'pull', # largefiles - 'putlfile': 'push', 'getlfile': 'pull', + 'putlfile': 'push', 'statlfile': 'pull', 'lheads': 'pull',