Show More
@@ -323,7 +323,7 def upgrade_share_to_safe( | |||||
323 | ui.warn(_(b'repository upgraded to use share-safe mode\n')) |
|
323 | ui.warn(_(b'repository upgraded to use share-safe mode\n')) | |
324 | except error.LockError as e: |
|
324 | except error.LockError as e: | |
325 | hint = _( |
|
325 | hint = _( | |
326 | "see `hg help config.format.use-share-safe` for more information" |
|
326 | b"see `hg help config.format.use-share-safe` for more information" | |
327 | ) |
|
327 | ) | |
328 | if mismatch_config == b'upgrade-abort': |
|
328 | if mismatch_config == b'upgrade-abort': | |
329 | raise error.Abort( |
|
329 | raise error.Abort( | |
@@ -380,7 +380,7 def downgrade_share_to_non_safe( | |||||
380 | ui.warn(_(b'repository downgraded to not use share-safe mode\n')) |
|
380 | ui.warn(_(b'repository downgraded to not use share-safe mode\n')) | |
381 | except error.LockError as e: |
|
381 | except error.LockError as e: | |
382 | hint = _( |
|
382 | hint = _( | |
383 | "see `hg help config.format.use-share-safe` for more information" |
|
383 | b"see `hg help config.format.use-share-safe` for more information" | |
384 | ) |
|
384 | ) | |
385 | # If upgrade-abort is set, abort when upgrade fails, else let the |
|
385 | # If upgrade-abort is set, abort when upgrade fails, else let the | |
386 | # process continue as `upgrade-allow` is set |
|
386 | # process continue as `upgrade-allow` is set |
@@ -266,7 +266,10 def has_executablebit(): | |||||
266 |
|
266 | |||
267 | @check("suidbit", "setuid and setgid bit") |
|
267 | @check("suidbit", "setuid and setgid bit") | |
268 | def has_suidbit(): |
|
268 | def has_suidbit(): | |
269 | if getattr(os, "statvfs", None) is None or getattr(os, "ST_NOSUID") is None: |
|
269 | if ( | |
|
270 | getattr(os, "statvfs", None) is None | |||
|
271 | or getattr(os, "ST_NOSUID", None) is None | |||
|
272 | ): | |||
270 | return False |
|
273 | return False | |
271 | return bool(os.statvfs('.').f_flag & os.ST_NOSUID) |
|
274 | return bool(os.statvfs('.').f_flag & os.ST_NOSUID) | |
272 |
|
275 |
General Comments 0
You need to be logged in to leave comments.
Login now