diff hgext/acl.py @ 51700:7f0cb9ee0534

Backout accidental publication of a large range of revisions I accidentally published 25e7f9dcad0f::bd1483fd7088, this is the inverse.
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 23 Jul 2024 10:02:46 +0200
parents 493034cc3265
children ca7bde5dbafb
line wrap: on
line diff
--- a/hgext/acl.py	Mon Jul 22 16:49:38 2024 +0200
+++ b/hgext/acl.py	Tue Jul 23 10:02:46 2024 +0200
@@ -279,6 +279,7 @@
 
 
 def _getusers(ui, group):
+
     # First, try to use group definition from section [acl.groups]
     hgrcusers = ui.configlist(b'acl.groups', group)
     if hgrcusers:
@@ -293,10 +294,12 @@
 
 
 def _usermatch(ui, user, usersorgroups):
+
     if usersorgroups == b'*':
         return True
 
     for ug in usersorgroups.replace(b',', b' ').split():
+
         if ug.startswith(b'!'):
             # Test for excluded user or group. Format:
             # if ug is a user  name: !username
@@ -365,6 +368,7 @@
 
 
 def hook(ui, repo, hooktype, node=None, source=None, **kwargs):
+
     ensureenabled(ui)
 
     if hooktype not in [b'pretxnchangegroup', b'pretxncommit', b'prepushkey']: