Mercurial > hg
comparison mercurial/subrepo.py @ 51690:493034cc3265
black: format the codebase with 23.3.0
The CI has moved to 23.3.0, which is the last version that supports 3.7
at runtime, so we should honor this change.
# skip-blame mass-reformating only
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Thu, 18 Jul 2024 12:36:12 +0200 |
parents | d718eddf01d9 |
children | 7f0cb9ee0534 |
comparison
equal
deleted
inserted
replaced
51689:39e2b2d062c1 | 51690:493034cc3265 |
---|---|
1225 path = e.getAttribute('path').encode('utf8') | 1225 path = e.getAttribute('path').encode('utf8') |
1226 if item == 'external': | 1226 if item == 'external': |
1227 externals.append(path) | 1227 externals.append(path) |
1228 elif item == 'missing': | 1228 elif item == 'missing': |
1229 missing.append(path) | 1229 missing.append(path) |
1230 if ( | 1230 if item not in ( |
1231 item | 1231 '', |
1232 not in ( | 1232 'normal', |
1233 '', | 1233 'unversioned', |
1234 'normal', | 1234 'external', |
1235 'unversioned', | 1235 ) or props not in ('', 'none', 'normal'): |
1236 'external', | |
1237 ) | |
1238 or props not in ('', 'none', 'normal') | |
1239 ): | |
1240 changes.append(path) | 1236 changes.append(path) |
1241 for path in changes: | 1237 for path in changes: |
1242 for ext in externals: | 1238 for ext in externals: |
1243 if path == ext or path.startswith(ext + pycompat.ossep): | 1239 if path == ext or path.startswith(ext + pycompat.ossep): |
1244 return True, True, bool(missing) | 1240 return True, True, bool(missing) |