def __add_mapfile_path(self, remote_url):
        """Adds mapfile path based on remote_url.

        Makes sure the git-remote-hg remote is formed correctly and sets the
        path based on the current git repository.

        Sets mapfile_path on the current instance if succeeds.

        Args:
            remote_url: String containing a remote URL for a repository.

        Raises:
            GitRvException: if the remote URL doesn't start with hg::.
        """
        if not remote_url.startswith('hg::'):
            raise GitRvException(
                    (remote_url,) % GOOGLE_CODEHOSTING_HG_BAD_REMOTE_TEMPLATE)

        actual_uri = remote_url.split('hg::', 1)[1]
        hgremote_directory = urllib.quote_plus(actual_uri)
        project_root = get_git_root()
        self.mapfile_path = os.path.join(
                project_root, '.git', 'hgremotes',
                hgremote_directory, '.hg', 'git-mapfile')
dataset/ETHPy150Open googlearchive/git-rv/utils.py/GoogleCodehostingHgRepositoryInfo.__add_mapfile_path/swapped operands of `%`