def _get_full_path(self, path, basedir=None):
        parts = [self.repository.path.rstrip("/")]

        if basedir:
            parts.append(basedir.strip("/"))

        parts.append(path.strip("/"))

        final_path = "/".join(parts)

        if final_path.startswith("/"):
            final_path = "file://%s" % final_path

        if self.repository.local_site and sshutils.is_ssh_uri(final_path):
            final_path += '?rb-local-site-name=%s' % \
                          self.repository.local_site.name

        return final_path
Returns the full path to a file.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/scmtools/bzr.py/BZRTool._get_full_path