You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-dev@apache.org by Luciano Resende <lu...@gmail.com> on 2009/01/09 01:25:42 UTC

Pointing git repo to a new svn mirror ... Fwd: Git repo for Apache Qpid

Hey Jukka

   How did you move the git repo  to point to a new location ? I have
a local repo pointing to apache svn eu mirror, and I'd like to
experiment moving it to commit direct to svn us to avoid issues when
committing multiple local commits.

Thanks


---------- Forwarded message ----------
From: Jukka Zitting <ju...@gmail.com>
Date: Sat, Dec 13, 2008 at 4:20 PM
Subject: Re: Git repo for Apache Qpid
To: aidan@apache.org, infrastructure-dev@apache.org


Hi,

On Fri, Dec 12, 2008 at 12:24 PM, Aidan Skinner <ai...@apache.org> wrote:
> Thanks for doing this, I totally forgot that graduating is going to
> involve moving our svn repo. From some point today it's going to be
> moved to https://svn.apache.org/repos/asf/qpid/
>
> Could you please update the mirror to the new location (I think a
> git-svn init can do this with --rewrite-root) and turn on the
> auto-update-from-svn-commit mail thing?

Done.

BR,

Jukka Zitting



-- 
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Re: Pointing git repo to a new svn mirror ... Fwd: Git repo for Apache Qpid

Posted by Santiago Gala <sa...@gmail.com>.
El vie, 09-01-2009 a las 21:21 +0100, Grzegorz Kossakowski escribió:
> Luciano Resende pisze:
> > I thought clonning was disabled, but dcommitting was ok.
> 
> git-svn has to fetch from svn server (+rebase) before doing dcommit. I remember myself struggling with git-svn that was
> not playing nicely with mod_dontdothat even for small requests.
> 

git-svn, IIRC, requests REPORT for the root URL as part of the history
search and fetch during cloning, as a way to make sure that if a branch
was mv'ed from somewhere else it is properly tracked. This is an issue
with mod_dontdothat.

The rebase done before committing should not trigger this request,
though.

> I recall Joe saying something like Git is too aggressive even for simple requests to svn server which triggers
> mod_dontdothat. AFAIR, it was just his suspicion as we didn't check this problem and moved on with disabling
> mod_dontdothat for https access to svn.eu machine.
> 
> If you manage to check all these vague statements lets us know!
> 

A number of requests were banned from the root url, mostly to avoid a
common incident: users checking the whole ASF tree out, which is
definitely a no-no. A number of those requests are triggered by git-svn
looking for common ancestors of the requested tree, as I said (imagine
moving an incubated tree to its final location as a typical such move),
and this causes the problems.

Regards
Santiago


Re: Pointing git repo to a new svn mirror ... Fwd: Git repo for Apache Qpid

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Luciano Resende pisze:
> I thought clonning was disabled, but dcommitting was ok.

git-svn has to fetch from svn server (+rebase) before doing dcommit. I remember myself struggling with git-svn that was
not playing nicely with mod_dontdothat even for small requests.

I recall Joe saying something like Git is too aggressive even for simple requests to svn server which triggers
mod_dontdothat. AFAIR, it was just his suspicion as we didn't check this problem and moved on with disabling
mod_dontdothat for https access to svn.eu machine.

If you manage to check all these vague statements lets us know!

-- 
Best regards,
Grzegorz Kossakowski

Re: Pointing git repo to a new svn mirror ... Fwd: Git repo for Apache Qpid

Posted by Luciano Resende <lu...@gmail.com>.
I thought clonning was disabled, but dcommitting was ok.

On Fri, Jan 9, 2009 at 11:44 AM, Grzegorz Kossakowski
<gk...@apache.org> wrote:
> Jukka Zitting pisze:
>> My script was for updating a mirror when a project is moved within an
>> svn repository. You're trying to change the address of the svn
>> repository, so my script won't help you.
>>
>> However, you should be able to achieve this effect with the
>> --rewrite-root option. You may want to try something like this
>> (untested):
>>
>>     git clone git://jukka.zitting.name/tuscany-sca.git
>>     cd tuscany-sca
>>     git svn init --prefix=origin/ \
>>         --trunk=java/sca --branches=branches --tags=tags \
>>         --rewrite-root=https://svn.eu.apache.org/repos/asf \
>>         https://svn.apache.org/repos/asf/tuscany
>>     git svn rebase
>
> Isn't it that git svn still cannot even dcommit (not mentioning cloning which is obviously not working) to
> svn.apache.org due to mod_dontdothat?
>
> --
> Best regards,
> Grzegorz Kossakowski
>



-- 
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Re: Pointing git repo to a new svn mirror ... Fwd: Git repo for Apache Qpid

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Jukka Zitting pisze:
> My script was for updating a mirror when a project is moved within an
> svn repository. You're trying to change the address of the svn
> repository, so my script won't help you.
> 
> However, you should be able to achieve this effect with the
> --rewrite-root option. You may want to try something like this
> (untested):
> 
>     git clone git://jukka.zitting.name/tuscany-sca.git
>     cd tuscany-sca
>     git svn init --prefix=origin/ \
>         --trunk=java/sca --branches=branches --tags=tags \
>         --rewrite-root=https://svn.eu.apache.org/repos/asf \
>         https://svn.apache.org/repos/asf/tuscany
>     git svn rebase

Isn't it that git svn still cannot even dcommit (not mentioning cloning which is obviously not working) to
svn.apache.org due to mod_dontdothat?

-- 
Best regards,
Grzegorz Kossakowski

Re: Pointing git repo to a new svn mirror ... Fwd: Git repo for Apache Qpid

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On Fri, Jan 9, 2009 at 1:25 AM, Luciano Resende <lu...@gmail.com> wrote:
> How did you move the git repo  to point to a new location ? I have
> a local repo pointing to apache svn eu mirror, and I'd like to
> experiment moving it to commit direct to svn us to avoid issues when
> committing multiple local commits.

My script was for updating a mirror when a project is moved within an
svn repository. You're trying to change the address of the svn
repository, so my script won't help you.

However, you should be able to achieve this effect with the
--rewrite-root option. You may want to try something like this
(untested):

    git clone git://jukka.zitting.name/tuscany-sca.git
    cd tuscany-sca
    git svn init --prefix=origin/ \
        --trunk=java/sca --branches=branches --tags=tags \
        --rewrite-root=https://svn.eu.apache.org/repos/asf \
        https://svn.apache.org/repos/asf/tuscany
    git svn rebase

BR,

Jukka Zitting