# git-svn troubles with calendarserver SVN repo

5 messages from 2013-11-29 to 2013-12-02. Participants: Matěj Cepl, Jon Seymour, Ramkumar Ramachandra.
Thread: https://gitlist.dev/t/35439

## Matěj Cepl, 2013-11-29 23:14

Subject: git-svn troubles with calendarserver SVN repo
Message-ID: <52991FE0.6040503@redhat.com>
URL: https://gitlist.dev/e/52991FE0.6040503%40redhat.com

```
Hi,



I am trying to git-svn clone
https://svn.calendarserver.org/repository/calendarserver/CalendarServer/
and I cannot say I am much succesful. Every couple of hundred of commits
I get this:


RA layer request failed: REPORT of
'/repository/calendarserver/!svn/vcc/default': could not connect to
server (https://svn.calendarserver.org) at
/usr/local/share/perl5/Git/SVN/Ra.pm line 290.


and git-svn stops. When restarting git svn fetch, it fetches
another couple of hundred commits and then fails again. Given
that there are 11000+ commits just in the trunk, I am afraid of
a long long night. Did anybody managed to clone this repo? Or is
there some way how to make git-svn more patient (this error
means the SVN server is a bit flakey, right)?

Best,

Matěj
-- 
http://www.ceplovi.cz/matej/, Jabber: mcepl@ceplovi.cz
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC

A day without sunshine is like night.


```

## Jon Seymour, 2013-11-30 08:54

Subject: Re: git-svn troubles with calendarserver SVN repo
Message-ID: <CAH3Anro=vM2JLLZhdJ4nnO3qLhw4yV2JFT8EwC3jcbbGrj4H=g@mail.gmail.com>
URL: https://gitlist.dev/e/CAH3Anro%3DvM2JLLZhdJ4nnO3qLhw4yV2JFT8EwC3jcbbGrj4H%3Dg%40mail.gmail.com
In-Reply-To: <52991FE0.6040503@redhat.com>

```
I have seen this behaviour, though never determined the root cause
.Probably the simplest thing you can do without access to the server
is to put your git svn fetch into a bash while loop, like so:

while ! git svn fetch; do :; done;

jon

On Sat, Nov 30, 2013 at 10:14 AM, Matěj Cepl <mcepl@redhat.com> wrote:
> Hi,
>
>
>
> I am trying to git-svn clone
> https://svn.calendarserver.org/repository/calendarserver/CalendarServer/
> and I cannot say I am much succesful. Every couple of hundred of commits
> I get this:
>
>
> RA layer request failed: REPORT of
> '/repository/calendarserver/!svn/vcc/default': could not connect to
> server (https://svn.calendarserver.org) at
> /usr/local/share/perl5/Git/SVN/Ra.pm line 290.
>
>
> and git-svn stops. When restarting git svn fetch, it fetches
> another couple of hundred commits and then fails again. Given
> that there are 11000+ commits just in the trunk, I am afraid of
> a long long night. Did anybody managed to clone this repo? Or is
> there some way how to make git-svn more patient (this error
> means the SVN server is a bit flakey, right)?
>
> Best,
>
> Matěj
> --
> http://www.ceplovi.cz/matej/, Jabber: mcepl@ceplovi.cz
> GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
>
> A day without sunshine is like night.
>

```

## Matěj Cepl, 2013-12-02 06:03

Subject: Re: git-svn troubles with calendarserver SVN repo
Message-ID: <529C229F.2030504@redhat.com>
URL: https://gitlist.dev/e/529C229F.2030504%40redhat.com
In-Reply-To: <CAH3Anro=vM2JLLZhdJ4nnO3qLhw4yV2JFT8EwC3jcbbGrj4H=g@mail.gmail.com>

```
On 30/11/13 09:54, Jon Seymour wrote:
> I have seen this behaviour, though never determined the root cause
> .Probably the simplest thing you can do without access to the server
> is to put your git svn fetch into a bash while loop, like so:
> 
> while ! git svn fetch; do :; done;

Of course, I did this, but still I wonder how much is the resulting git
repository http://luther.ceplovi.cz/git/CalendarServer.git/ faithful
representation of the original SVN one http://trac.calendarserver.org/.
Would not be something missing?

Best,

Matěj

-- 
http://www.ceplovi.cz/matej/, Jabber: mcepl@ceplovi.cz
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC

They that can give up essential liberty to obtain a little
temporary safety deserve neither liberty nor safety.
    -- Benjamin Franklin, Historical Review
       of Pennsylvania, 1759.


```

## Jon Seymour, 2013-12-02 07:00

Subject: Re: git-svn troubles with calendarserver SVN repo
Message-ID: <CAH3Anroi65OrZZQ0MvmPxgWZXB_eG=1aA-cxqdR=y-uAXsFaNA@mail.gmail.com>
URL: https://gitlist.dev/e/CAH3Anroi65OrZZQ0MvmPxgWZXB_eG%3D1aA-cxqdR%3Dy-uAXsFaNA%40mail.gmail.com
In-Reply-To: <529C229F.2030504@redhat.com>

```
My experience is that the fetch will be atomic - it either fetches an
SVN commit or it doesn't.

Failure during dcommit is more painful and I usually find it is
necessary to manually use a git rebase to rebase the commits that
didn't make it to SVN on top of the commits that did.

jon.

On Mon, Dec 2, 2013 at 5:03 PM, Matěj Cepl <mcepl@redhat.com> wrote:
> On 30/11/13 09:54, Jon Seymour wrote:
>> I have seen this behaviour, though never determined the root cause
>> .Probably the simplest thing you can do without access to the server
>> is to put your git svn fetch into a bash while loop, like so:
>>
>> while ! git svn fetch; do :; done;
>
> Of course, I did this, but still I wonder how much is the resulting git
> repository http://luther.ceplovi.cz/git/CalendarServer.git/ faithful
> representation of the original SVN one http://trac.calendarserver.org/.
> Would not be something missing?
>
> Best,
>
> Matěj
>
> --
> http://www.ceplovi.cz/matej/, Jabber: mcepl@ceplovi.cz
> GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
>
> They that can give up essential liberty to obtain a little
> temporary safety deserve neither liberty nor safety.
>     -- Benjamin Franklin, Historical Review
>        of Pennsylvania, 1759.
>

```

## Ramkumar Ramachandra, 2013-12-02 11:01

Subject: Re: git-svn troubles with calendarserver SVN repo
Message-ID: <CALkWK0mPHzKfzFKKpZkfAus3YVC9NFYDbFnt+5JQYVKipk3bQQ@mail.gmail.com>
URL: https://gitlist.dev/e/CALkWK0mPHzKfzFKKpZkfAus3YVC9NFYDbFnt%2B5JQYVKipk3bQQ%40mail.gmail.com
In-Reply-To: <52991FE0.6040503@redhat.com>

```
Matěj Cepl wrote:
> I am trying to git-svn clone
> https://svn.calendarserver.org/repository/calendarserver/CalendarServer/
> and I cannot say I am much succesful.

Consider using (the somewhat experimental) git-remote-testsvn and the
underlying contrib/svn-fe/. For starters, try:

  $ git clone testsvn::https://svn.calendarserver.org/repository/calendarserver/CalendarServer/

You might need to hack a bit to get it working properly, but you'll
find that it's much faster than git-svn in the long-run.

```
