Changeset - 49149ca96075
[Not reviewed]
stable
0 3 0
Sebastian Krause - 13 months ago 2025-02-18 15:11:30
sebastian.krause@scopevisio.com
Grafted from: 0129bb31389f
hg: support protocol commands used by hg-evolve

When cloning or pulling from a repository which uses the evolve extension
Kallithea would require write permissions for multiple commands:
evoext_obshashrange_v1, _exttopics_heads and tns_heads.

https://foss.heptapod.net/mercurial/evolve/-/blob/6ffc4d7635fac0e605eb44b77de539f64c3739a2/hgext3rd/topic/server.py#L134
https://foss.heptapod.net/mercurial/evolve/-/blob/6ffc4d7635fac0e605eb44b77de539f64c3739a2/hgext3rd/evolve/obsdiscovery.py#L722

Fixed by adding them to the list of known read-only commands.
3 files changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
CONTRIBUTORS
Show inline comments
 
@@ -2,6 +2,7 @@ List of contributors to Kallithea projec
 

	
 
    Mads Kiilerich <mads@kiilerich.com> 2016-2025
 
    Manuel Jacob <me@manueljacob.de> 2019-2020 2022-2023 2025
 
    Sebastian Krause <sebastian.krause@scopevisio.com> 2025
 
    Aristotelis Stageiritis <aristotelis79@gmail.com> 2024
 
    Poesty Li <poesty7450@gmail.com> 2024
 
    Valentin Kleibel <valentin@vrvis.at> 2024
kallithea/config/middleware/simplehg.py
Show inline comments
 
@@ -89,6 +89,10 @@ cmd_mapping = {
 
    'pushkey': 'push',
 
    'putlfile': 'push',
 
    'unbundle': 'push',
 
    # the following commands are used by hg-evolve
 
    'evoext_obshashrange_v1': 'pull',
 
    '_exttopics_heads': 'pull',
 
    'tns_heads': 'pull',
 
    }
 

	
 

	
kallithea/templates/about.html
Show inline comments
 
@@ -26,6 +26,7 @@
 

	
 
  <li>Copyright &copy; 2012&ndash;2025, Mads Kiilerich</li>
 
  <li>Copyright &copy; 2019&ndash;2020, 2022&ndash;2023, 2025, Manuel Jacob</li>
 
  <li>Copyright &copy; 2025, Sebastian Krause</li>
 
  <li>Copyright &copy; 2024, Aristotelis Stageiritis</li>
 
  <li>Copyright &copy; 2024, Poesty Li</li>
 
  <li>Copyright &copy; 2024, Valentin Kleibel</li>
0 comments (0 inline, 0 general)