~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/cmd_version_info.py

  • Committer: Vincent Ladeuil
  • Date: 2010-04-12 16:41:03 UTC
  • mto: (5148.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5151.
  • Revision ID: v.ladeuil+lp@free.fr-20100412164103-v157103xtwozjf7n
Failing tests for bug #519319.

* bzrlib/tests/blackbox/test_send.py:
(TestSendStrictMixin.assertSendSucceeds): We want to be able to
succeed with a warning.
(TestSendStrictWithChanges.test_send_default)
(TestSendStrictWithChanges.test_send_bogus_config_var_ignored):
Succeed with a warning.

* bzrlib/tests/blackbox/test_push.py:
(TestPushStrictMixin.assertPushSucceeds): We want to be able to
succeed with a warning.
(TestPushStrictWithChanges.test_push_default): By default we
succeed with a warning.
(TestPushStrictWithChanges.test_push_bogus_config_var_ignored):
Ignoring a conf variable also succeeds with a warning.

* bzrlib/tests/blackbox/test_dpush.py:
(TestDpushStrictMixin.assertPushSucceeds): We want to be able to
succeed with a warning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical Ltd
 
1
# Copyright (C) 2005-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
"""Commands for generating snapshot information about a bzr tree."""
18
18
 
19
19
from bzrlib.lazy_import import lazy_import
 
20
 
20
21
lazy_import(globals(), """
21
22
from bzrlib import (
22
23
    branch,
23
24
    errors,
 
25
    ui,
 
26
    version_info_formats,
24
27
    workingtree,
25
28
    )
26
29
""")
27
 
from bzrlib import (
28
 
    version_info_formats,
29
 
    )
 
30
 
30
31
from bzrlib.commands import Command
31
32
from bzrlib.option import Option, RegistryOption
32
33
 
72
73
 
73
74
    takes_options = [RegistryOption('format',
74
75
                            'Select the output format.',
75
 
                            version_info_formats.format_registry,
76
 
                            value_switches=True),
 
76
                            value_switches=True,
 
77
                            lazy_registry=('bzrlib.version_info_formats',
 
78
                                           'format_registry')),
77
79
                     Option('all', help='Include all possible information.'),
78
80
                     Option('check-clean', help='Check if tree is clean.'),
79
81
                     Option('include-history',
114
116
                include_revision_history=include_history,
115
117
                include_file_revisions=include_file_revisions,
116
118
                template=template)
117
 
        builder.generate(self.outf)
 
119
        builder.generate(ui.ui_factory.make_output_stream())