/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/log.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
    warn,
62
62
    )
63
63
 
64
 
from bzrlib.lazy_import import lazy_import
 
64
from breezy.lazy_import import lazy_import
65
65
lazy_import(globals(), """
66
66
 
67
 
from bzrlib import (
 
67
from breezy import (
68
68
    config,
69
69
    controldir,
70
70
    diff,
75
75
    revisionspec,
76
76
    tsort,
77
77
    )
78
 
from bzrlib.i18n import gettext, ngettext
 
78
from breezy.i18n import gettext, ngettext
79
79
""")
80
80
 
81
 
from bzrlib import (
 
81
from breezy import (
82
82
    lazy_regex,
83
83
    registry,
84
84
    )
85
 
from bzrlib.osutils import (
 
85
from breezy.osutils import (
86
86
    format_date,
87
87
    format_date_with_offset_in_original_timezone,
88
88
    get_diff_header_encoding,
270
270
 
271
271
    :param _match_using_deltas: a private parameter controlling the
272
272
      algorithm used for matching specific_fileids. This parameter
273
 
      may be removed in the future so bzrlib client code should NOT
 
273
      may be removed in the future so breezy client code should NOT
274
274
      use it.
275
275
 
276
276
    :param exclude_common_ancestry: Whether -rX..Y should be interpreted as a
329
329
    :param repo: repository of revision
330
330
    :return: human readable string to print to log
331
331
    """
332
 
    from bzrlib import gpg
 
332
    from breezy import gpg
333
333
 
334
334
    gpg_strategy = gpg.GPGStrategy(None)
335
335
    result = repo.verify_revision_signature(rev_id, gpg_strategy)
1585
1585
        to_file.write("%s%s\n" % (indent, ('\n' + indent).join(lines)))
1586
1586
        if revision.delta is not None:
1587
1587
            # Use the standard status output to display changes
1588
 
            from bzrlib.delta import report_delta
 
1588
            from breezy.delta import report_delta
1589
1589
            report_delta(to_file, revision.delta, short_status=False,
1590
1590
                         show_ids=self.show_ids, indent=indent)
1591
1591
        if revision.diff is not None:
1657
1657
 
1658
1658
        if revision.delta is not None:
1659
1659
            # Use the standard status output to display changes
1660
 
            from bzrlib.delta import report_delta
 
1660
            from breezy.delta import report_delta
1661
1661
            report_delta(to_file, revision.delta,
1662
1662
                         short_status=self.delta_format==1,
1663
1663
                         show_ids=self.show_ids, indent=indent + offset)
2014
2014
      kind is one of values 'directory', 'file', 'symlink', 'tree-reference'.
2015
2015
      branch will be read-locked.
2016
2016
    """
2017
 
    from bzrlib.builtins import _get_revision_range
 
2017
    from breezy.builtins import _get_revision_range
2018
2018
    tree, b, path = controldir.ControlDir.open_containing_tree_or_branch(
2019
2019
        file_list[0])
2020
2020
    add_cleanup(b.lock_read().unlock)