Comment 2 for bug 861052

Revision history for this message
Yonggang Luo (luoyonggang) wrote : Re: [Bug 861052] Re: Subvertpy failed when replay the site https://ImapPusherService.svn.codeplex.com/svn with file modifications.

2011/9/28 Jelmer Vernooij <email address hidden>

> It's not obvious to me what the bug in subvertpy is, can you post a
> Python snippet that reproduces the issue?
>
> ** Changed in: subvertpy
> Status: New => Incomplete
>
> Maybe it's because the problem of http://svnbridge.codeplex.com/
THE key of the problem is the replay.

        """
        Initializes the RA and client layers.

        With the SWIG bindings, getting unified diffs runs the remote server
        sometimes runs out of open files. It is not known whether the
Subvertpy
        is affected by this.
        """
        def getclientstring():
            return 'hgsubversion'
        def getpass(realm, username, may_save):
            return self.username or username, self.password or '', False
        def getuser(realm, may_save):
            return self.username or '', False

        providers = ra.get_platform_specific_client_providers()
        providers += [
            ra.get_simple_provider(),
            ra.get_username_provider(),
            ra.get_ssl_client_cert_file_provider(),
            ra.get_ssl_client_cert_pw_file_provider(),
            ra.get_ssl_server_trust_file_provider(),
            ra.get_username_prompt_provider(getuser, 0),
            ra.get_simple_prompt_provider(getpass, 0),
        ]

        auth = ra.Auth(providers)
        if self.username:
            auth.set_parameter(subvertpy.AUTH_PARAM_DEFAULT_USERNAME,
self.username)
        if self.password:
            auth.set_parameter(subvertpy.AUTH_PARAM_DEFAULT_PASSWORD,
self.password)

        remote = ra.RemoteAccess(url=self.svn_url,
                                      client_string_func=getclientstring,
                                      auth=auth)
       remote.replay(revision, oldestrev, AbstractEditor(editor))
--
         此致

罗勇刚
Yours
    sincerely,
Yonggang Luo