~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-17 05:34:42 UTC
  • mfrom: (6059.4.8 migrate-config-options)
  • Revision ID: pqm@pqm.ubuntu.com-20110817053442-pz1w7iw2w0w78ewy
(vila) More options migrated to the stack-based config. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2386
2386
# Registered options in lexicographical order
2387
2387
 
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',
 
2391
           help='''\
 
2392
How many changes before saving the dirstate.
 
2393
 
 
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.
 
2399
'''))
 
2400
option_registry.register(
 
2401
    Option('dirstate.fdatasync', default=True,
 
2402
           from_unicode=bool_from_store,
2390
2403
           help='''\
2391
2404
Flush dirstate changes onto physical disk?
2392
2405
 
2395
2408
should not be lost if the machine crashes.  See also repository.fdatasync.
2396
2409
'''))
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,
 
2422
           help='''\
 
2423
Control the missing extensions warning display.
 
2424
 
 
2425
The warning will not be emitted if set to True.
 
2426
'''))
 
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,
 
2432
           help='''\
 
2433
Steal locks that appears to be dead.
 
2434
 
 
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
 
2439
this process.
 
2440
Otherwise, bzr will prompt as normal to break the lock.
 
2441
'''))
 
2442
option_registry.register(
2407
2443
    Option('output_encoding',
2408
2444
           help= 'Unicode encoding for output'
2409
2445
           ' (terminal encoding if not specified).'))