threads / discuss / 35439

git-svn troubles with calendarserver SVN repo

Subject: git-svn troubles with calendarserver SVN repo

## tl;dr

5 messages between Nov 29, 2013 and Dec 2, 2013.

replies: 4people: 3as markdown or json

Matěj Cepl· Nov 29, 2013, 23:14 UTC · lore
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· Nov 30, 2013, 08:54 UTC · re: Matěj Cepl · lore

Re: git-svn troubles with calendarserver SVN repo

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:
Show 32 quoted lines
> 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· Dec 2, 2013, 06:03 UTC · re: Jon Seymour · lore

Re: git-svn troubles with calendarserver SVN repo

On 30/11/13 09:54, Jon Seymour wrote:
Show 5 quoted lines
> 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· Dec 2, 2013, 07:00 UTC · re: Matěj Cepl · lore

Re: git-svn troubles with calendarserver SVN repo

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:
Show 25 quoted lines
> 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· Dec 2, 2013, 11:01 UTC · re: Matěj Cepl · lore

Re: git-svn troubles with calendarserver SVN repo

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.

← back to recent threads