Show More
@@ -897,11 +897,15 b' class MercurialRepository(BaseRepository' | |||
|
897 | 897 | |
|
898 | 898 | def read_patterns(suffix): |
|
899 | 899 | svalue = None |
|
900 | try: | |
|
901 |
|
|
|
902 | except configparser.NoOptionError: | |
|
900 | for section, option in [ | |
|
901 | ('narrowacl', username + suffix), | |
|
902 | ('narrowacl', 'default' + suffix), | |
|
903 | ('narrowhgacl', username + suffix), | |
|
904 | ('narrowhgacl', 'default' + suffix) | |
|
905 | ]: | |
|
903 | 906 | try: |
|
904 |
svalue = hgacl.get( |
|
|
907 | svalue = hgacl.get(section, option) | |
|
908 | break # stop at the first value we find | |
|
905 | 909 | except configparser.NoOptionError: |
|
906 | 910 | pass |
|
907 | 911 | if not svalue: |
General Comments 0
You need to be logged in to leave comments.
Login now