Mercurial > hg
comparison mercurial/exchange.py @ 43769:27c6d6f53d46
exchange: eliminate some bytes.format() calls
Differential Revision: https://phab.mercurial-scm.org/D7511
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 22 Nov 2019 23:58:25 -0500 |
parents | 32048206e7be |
children | 44b605638918 |
comparison
equal
deleted
inserted
replaced
43768:fe73ec69350e | 43769:27c6d6f53d46 |
---|---|
2179 username + b'.excludes', | 2179 username + b'.excludes', |
2180 ui.configlist(_NARROWACL_SECTION, b'default.excludes'), | 2180 ui.configlist(_NARROWACL_SECTION, b'default.excludes'), |
2181 ) | 2181 ) |
2182 if not user_includes: | 2182 if not user_includes: |
2183 raise error.Abort( | 2183 raise error.Abort( |
2184 _(b"{} configuration for user {} is empty").format( | 2184 _(b"%s configuration for user %s is empty") |
2185 _NARROWACL_SECTION, username | 2185 % (_NARROWACL_SECTION, username) |
2186 ) | |
2187 ) | 2186 ) |
2188 | 2187 |
2189 user_includes = [ | 2188 user_includes = [ |
2190 b'path:.' if p == b'*' else b'path:' + p for p in user_includes | 2189 b'path:.' if p == b'*' else b'path:' + p for p in user_includes |
2191 ] | 2190 ] |
2200 req_includes, req_excludes, user_includes, user_excludes | 2199 req_includes, req_excludes, user_includes, user_excludes |
2201 ) | 2200 ) |
2202 | 2201 |
2203 if invalid_includes: | 2202 if invalid_includes: |
2204 raise error.Abort( | 2203 raise error.Abort( |
2205 _(b"The following includes are not accessible for {}: {}").format( | 2204 _(b"The following includes are not accessible for %s: %s") |
2206 username, invalid_includes | 2205 % (username, invalid_includes) |
2207 ) | |
2208 ) | 2206 ) |
2209 | 2207 |
2210 new_args = {} | 2208 new_args = {} |
2211 new_args.update(kwargs) | 2209 new_args.update(kwargs) |
2212 new_args['narrow'] = True | 2210 new_args['narrow'] = True |