~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Patch Queue Manager
  • Date: 2011-09-22 13:22:18 UTC
  • mfrom: (6155.2.2 migrate-config-options)
  • Revision ID: pqm@pqm.ubuntu.com-20110922132218-nitl31j5slbcmnm2
(vila) Migrate dpush_strict,
 push_strict and send_strict options to the stack based config design,
 introducing get_config_stack for branches (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2528
2528
    Option('default_format', default='2a',
2529
2529
           help='Format used when creating branches.'))
2530
2530
option_registry.register(
 
2531
    Option('dpush_strict', default=None,
 
2532
           from_unicode=bool_from_store,
 
2533
           help='''\
 
2534
The default value for ``dpush --strict``.
 
2535
 
 
2536
If present, defines the ``--strict`` option default value for checking
 
2537
uncommitted changes before pushing into a different VCS without any
 
2538
custom bzr metadata.
 
2539
'''))
 
2540
option_registry.register(
2531
2541
    Option('editor',
2532
2542
           help='The command called to launch an editor to enter a message.'))
2533
2543
option_registry.register(
2558
2568
           help= 'Unicode encoding for output'
2559
2569
           ' (terminal encoding if not specified).'))
2560
2570
option_registry.register(
 
2571
    Option('push_strict', default=None,
 
2572
           from_unicode=bool_from_store,
 
2573
           help='''\
 
2574
The default value for ``push --strict``.
 
2575
 
 
2576
If present, defines the ``--strict`` option default value for checking
 
2577
uncommitted changes before sending a merge directive.
 
2578
'''))
 
2579
option_registry.register(
2561
2580
    Option('repository.fdatasync', default=True,
2562
2581
           from_unicode=bool_from_store,
2563
2582
           help='''\
2567
2586
to physical disk.  This is somewhat slower, but means data should not be
2568
2587
lost if the machine crashes.  See also dirstate.fdatasync.
2569
2588
'''))
 
2589
option_registry.register(
 
2590
    Option('send_strict', default=None,
 
2591
           from_unicode=bool_from_store,
 
2592
           help='''\
 
2593
The default value for ``send --strict``.
 
2594
 
 
2595
If present, defines the ``--strict`` option default value for checking
 
2596
uncommitted changes before pushing.
 
2597
'''))
2570
2598
 
2571
2599
 
2572
2600
class Section(object):