##// END OF EJS Templates
Future proof path permissions for Mercurial 5.0
idlsoft -
r3646:01e4dac7 default
parent child Browse files
Show More
@@ -897,11 +897,15 b' class MercurialRepository(BaseRepository'
897
897
898 def read_patterns(suffix):
898 def read_patterns(suffix):
899 svalue = None
899 svalue = None
900 for section, option in [
901 ('narrowacl', username + suffix),
902 ('narrowacl', 'default' + suffix),
903 ('narrowhgacl', username + suffix),
904 ('narrowhgacl', 'default' + suffix)
905 ]:
900 try:
906 try:
901 svalue = hgacl.get('narrowhgacl', username + suffix)
907 svalue = hgacl.get(section, option)
902 except configparser.NoOptionError:
908 break # stop at the first value we find
903 try:
904 svalue = hgacl.get('narrowhgacl', 'default' + suffix)
905 except configparser.NoOptionError:
909 except configparser.NoOptionError:
906 pass
910 pass
907 if not svalue:
911 if not svalue:
General Comments 0
You need to be logged in to leave comments. Login now