2386
2386
# Registered options in lexicographical order
2388
2388
option_registry.register(
2389
Option('dirstate.fdatasync', default=True, from_unicode=bool_from_store,
2389
Option('bzr.workingtree.worth_saving_limit', default=10,
2390
from_unicode=int_from_store, invalid='warning',
2392
How many changes before saving the dirstate.
2394
-1 means that we will never rewrite the dirstate file for only
2395
stat-cache changes. Regardless of this setting, we will always rewrite
2396
the dirstate file if a file is added/removed/renamed/etc. This flag only
2397
affects the behavior of updating the dirstate file after we notice that
2398
a file has been touched.
2400
option_registry.register(
2401
Option('dirstate.fdatasync', default=True,
2402
from_unicode=bool_from_store,
2391
2404
Flush dirstate changes onto physical disk?
2395
2408
should not be lost if the machine crashes. See also repository.fdatasync.
2397
2410
option_registry.register(
2411
Option('debug_flags', default=[], from_unicode=list_from_store,
2412
help='Debug flags to activate.'))
2413
option_registry.register(
2398
2414
Option('default_format', default='2a',
2399
2415
help='Format used when creating branches.'))
2400
2416
option_registry.register(
2401
2417
Option('editor',
2402
2418
help='The command called to launch an editor to enter a message.'))
2403
2419
option_registry.register(
2420
Option('ignore_missing_extensions', default=False,
2421
from_unicode=bool_from_store,
2423
Control the missing extensions warning display.
2425
The warning will not be emitted if set to True.
2427
option_registry.register(
2404
2428
Option('language',
2405
2429
help='Language to translate messages into.'))
2406
2430
option_registry.register(
2431
Option('locks.steal_dead', default=False, from_unicode=bool_from_store,
2433
Steal locks that appears to be dead.
2435
If set to True, bzr will check if a lock is supposed to be held by an
2436
active process from the same user on the same machine. If the user and
2437
machine match, but no process with the given PID is active, then bzr
2438
will automatically break the stale lock, and create a new lock for
2440
Otherwise, bzr will prompt as normal to break the lock.
2442
option_registry.register(
2407
2443
Option('output_encoding',
2408
2444
help= 'Unicode encoding for output'
2409
2445
' (terminal encoding if not specified).'))