/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/check.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-16 23:19:12 UTC
  • mfrom: (7180 work)
  • mto: This revision was merged to the branch mainline in revision 7294.
  • Revision ID: jelmer@jelmer.uk-20181116231912-e043vpq22bdkxa6q
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
from .trace import note
44
44
from .i18n import gettext
45
45
 
 
46
 
46
47
class Check(object):
47
48
    """Check a repository"""
48
49
 
97
98
    """
98
99
    try:
99
100
        base_tree, branch, repo, relpath = \
100
 
                        ControlDir.open_containing_tree_branch_or_repository(path)
 
101
            ControlDir.open_containing_tree_branch_or_repository(path)
101
102
    except errors.NotBranchError:
102
103
        base_tree = branch = repo = None
103
104
 
104
105
    to_unlock = []
105
 
    needed_refs= {}
 
106
    needed_refs = {}
106
107
    try:
107
108
        if base_tree is not None:
108
109
            # If the tree is a lightweight checkout we won't see it in
141
142
                    note(gettext("Checking repository at '%s'.")
142
143
                         % (repo.user_url,))
143
144
                result = repo.check(None, callback_refs=needed_refs,
144
 
                    check_repo=do_repo)
 
145
                                    check_repo=do_repo)
145
146
                result.report_results(verbose)
146
147
        else:
147
148
            if do_tree: