/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 bzrlib/transport/local.py

1st cut merge of bzr.dev r3907

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        #       proper handling of stuff like
110
110
        path = osutils.normpath(osutils.pathjoin(
111
111
                    self._local_base, urlutils.unescape(relpath)))
 
112
        # on windows, our _local_base may or may not have a drive specified
 
113
        # (ie, it may be "/" or "c:/foo").
 
114
        # If 'relpath' is '/' we *always* get back an abspath without
 
115
        # the drive letter - but if our transport already has a drive letter,
 
116
        # we want our abspaths to have a drive letter too - so handle that
 
117
        # here.
 
118
        if (sys.platform == "win32" and self._local_base[1:2] == ":"
 
119
            and path == '/'):
 
120
            path = self._local_base[:3]
 
121
 
112
122
        return urlutils.local_path_to_url(path)
113
123
 
114
124
    def local_abspath(self, relpath):
117
127
        This function only exists for the LocalTransport, since it is
118
128
        the only one that has direct local access.
119
129
        This is mostly for stuff like WorkingTree which needs to know
120
 
        the local working directory.
121
 
        
 
130
        the local working directory.  The returned path will always contain
 
131
        forward slashes as the path separator, regardless of the platform.
 
132
 
122
133
        This function is quite expensive: it calls realpath which resolves
123
134
        symlinks.
124
135
        """