~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/bzrdir.py

remove all trailing whitespace from bzr source

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
 
62
62
    def _find(self, path):
63
63
        """try to find a repository from path upwards
64
 
        
 
64
 
65
65
        This operates precisely like 'bzrdir.find_repository'.
66
 
        
 
66
 
67
67
        :return: (relpath, rich_root, tree_ref, external_lookup) flags. All are
68
68
            strings, relpath is a / prefixed path, and the other three are
69
69
            either 'yes' or 'no'.
73
73
        bzrdir = BzrDir.open_from_transport(
74
74
            self.transport_from_client_path(path))
75
75
        repository = bzrdir.find_repository()
76
 
        # the relpath of the bzrdir in the found repository gives us the 
 
76
        # the relpath of the bzrdir in the found repository gives us the
77
77
        # path segments to pop-out.
78
78
        relpath = repository.bzrdir.root_transport.relpath(
79
79
            bzrdir.root_transport.base)
93
93
 
94
94
    def do(self, path):
95
95
        """try to find a repository from path upwards
96
 
        
 
96
 
97
97
        This operates precisely like 'bzrdir.find_repository'.
98
 
        
 
98
 
99
99
        If a bzrdir is not present, an exception is propogated
100
100
        rather than 'no branch' because these are different conditions.
101
101
 
116
116
 
117
117
    def do(self, path):
118
118
        """try to find a repository from path upwards
119
 
        
 
119
 
120
120
        This operates precisely like 'bzrdir.find_repository'.
121
 
        
 
121
 
122
122
        If a bzrdir is not present, an exception is propogated
123
123
        rather than 'no branch' because these are different conditions.
124
124
 
153
153
 
154
154
    def do(self, path):
155
155
        """try to open a branch at path and return ok/nobranch.
156
 
        
 
156
 
157
157
        If a bzrdir is not present, an exception is propogated
158
158
        rather than 'no branch' because these are different conditions.
159
159
        """